Revert "Throw out previous x86 stuff"

This reverts commit 807db4a592.
This commit is contained in:
Nero 2020-03-01 12:03:35 +00:00
parent 30ae244ef1
commit 4847eb4d88
24 changed files with 2507 additions and 0 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