Split code up into directories for bs and com binaries

This commit is contained in:
Nero 2020-03-30 12:13:21 +00:00
부모 5a24ceb9b8
커밋 955acdacba
9개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제

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