2020-03-02 12:57:43 +01:00
|
|
|
; COM program displaying hello world string
|
2020-03-23 20:01:23 +01:00
|
|
|
; This is primarily for testing purposes
|
2020-03-02 21:45:18 +01:00
|
|
|
org 0x0100
|
2020-03-02 12:57:43 +01:00
|
|
|
|
|
|
|
main:
|
|
|
|
mov si, string
|
|
|
|
mov ah, 0x0e
|
|
|
|
xor bx, bx
|
|
|
|
.loop:
|
|
|
|
lodsb
|
|
|
|
test al, al
|
|
|
|
jz .end
|
|
|
|
int 0x10
|
|
|
|
jmp .loop
|
|
|
|
.end:
|
|
|
|
ret
|
|
|
|
|
|
|
|
string:
|
|
|
|
db "Hello world!", 0x0A, 0x0D, 0
|