m4 test
This commit is contained in:
25
m4-bochs/hello.asm
Normal file
25
m4-bochs/hello.asm
Normal file
@@ -0,0 +1,25 @@
|
||||
[BITS 16]
|
||||
[ORG 0x7C00]
|
||||
|
||||
start:
|
||||
xor ax, ax
|
||||
mov ds, ax
|
||||
mov es, ax
|
||||
mov si, msg
|
||||
|
||||
loop:
|
||||
lodsb
|
||||
cmp al, 0
|
||||
je hlt
|
||||
mov ah, 0x0E
|
||||
int 0x10
|
||||
jmp loop
|
||||
|
||||
hlt:
|
||||
hlt
|
||||
jmp hlt
|
||||
|
||||
msg: db 'Hello M4 Bochs!', 0
|
||||
|
||||
times 510-($-$$) db 0
|
||||
dw 0xAA55
|
||||
Reference in New Issue
Block a user