Rename programs/ to com/

This commit is contained in:
Nero 2019-10-18 14:43:28 +00:00
parent 50e58765b1
commit ec4bdf649d
3 changed files with 9 additions and 5 deletions

21
com/asm86.asm Normal file
View file

@ -0,0 +1,21 @@
org 0x100
jmp start
%include "fcbparse.asm"
fcb_asm:
times 36 db 0
fcb_bin:
times 36 db 0
fcb_lst:
times 36 db 0
start:
mov si, 0x81
mov bx, fcb_asm
mov ax, 0x1234
call fcb_parse
ret

17
com/hello.asm Normal file
View file

@ -0,0 +1,17 @@
org 0x0100
main:
mov si, hello
.loop:
lodsb
test al, al
jz .ret
mov dl, al
mov cl, 0x02
call 5
jmp .loop
.ret:
ret
hello:
db "Hello!", 0x0A, 0x0D, 0