source: trunk/mioboot-nobios-simple.asm

Last change on this file was 26, checked in by monga, 5 years ago

Programmi 2014

File size: 496 bytes
RevLine 
[26]1;Copyright (C) 2008, 2009 by Mattia Monga <mattia.monga@unimi.it>
[2]2bits 16                         ; 16 bit real mode
3org 0x7C00                      ; origine indirizzo 0000:7C00
4
5start: 
6 mov ax, 0xb800 ; text video memory
7 mov ds, ax     ; ds non accessibile direttamente
8 mov bx, 10
9write:
10 cmp bx, 0
11 jz end
12 mov byte [ds:bx], 'm'    ; indirizzamento relativo a ds
13 mov byte [ds:bx+1], 0x0F ; attrib = white on black
14 sub bx, 2
15 jmp write
16end:
17 hlt
18
19times 510-($-$$) db 0 ; 0-padding
20dw 0xAA55
Note: See TracBrowser for help on using the repository browser.