Split code up into directories for bs and com binaries
This commit is contained in:
parent
5a24ceb9b8
commit
955acdacba
9 changed files with 2 additions and 2 deletions
19
com/hello.asm
Normal file
19
com/hello.asm
Normal file
|
@ -0,0 +1,19 @@
|
|||
; COM program displaying hello world string
|
||||
; This is primarily for testing purposes
|
||||
org 0x0100
|
||||
|
||||
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
|
Loading…
Add table
Add a link
Reference in a new issue