source: trunk/mioboot-nobios.asm@ 12

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

Importazione sorgenti

File size: 844 bytes
RevLine 
[2]1;Copyright (C) 2007 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 dest array index [ES:DI]
7 mov es, ax
8 mov di, 0 ; start of video memory
9
10 cld ; clears direction flag (index regs incremented)
11 mov ah, 0x0F ; attrib = white on black
12 mov si, msg
13 call message
14 hlt
15
16message:
17 lodsb ; carica un byte da [DS:SI] in AL e inc SI
18 cmp al, 0
19 jz done
20 stosw ; memorizza una word da [ES:DI] in AL e inc SI
21 jmp message
22done: ret
23
24
25msg db "Hello world from the bare machine!!!", 0
26
27 times 510-($-$$) db 0
28 dw 0xAA55
Note: See TracBrowser for help on using the repository browser.