Add normal hello world program for testing
This commit is contained in:
parent
0f833da221
commit
7cfd87b6b4
1 changed files with 20 additions and 0 deletions
20
hello.asm
Normal file
20
hello.asm
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
org BASE
|
||||||
|
; COM program displaying hello world string
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
%include "bootsig.inc"
|
Loading…
Add table
Add a link
Reference in a new issue