;Copyright (C) 2008-2011 by Mattia Monga <mattia.monga@unimi.it>
bits 16                         ; 16 bit real mode
org 0x7C00                      ; origine indirizzo 0000:7C00

start:	
 mov ax, 0xb800	; text video memory
 mov ds, ax	; ds non accessibile direttamente 
 mov bx, 10
write:
 cmp bx, 0
 jz end
 mov byte [ds:bx], 'm'    ; indirizzamento relativo a ds
 mov byte [ds:bx+1], 0x0F ; attrib = white on black
 sub bx, 2
 jmp write
end:
 hlt

times 510-($-$$) db 0 ; 0-padding 
dw 0xAA55
