source: trunk/mioboot-nobios-simple.asm@ 12

Last change on this file since 12 was 3, checked in by Mattia Monga, 14 years ago

Copyright aggiornato

File size: 495 bytes
Line 
1;Copyright (C) 2008-2011 by Mattia Monga <mattia.monga@unimi.it>
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.