Split code up into directories for bs and com binaries
This commit is contained in:
부모
5a24ceb9b8
커밋
955acdacba
9개의 변경된 파일과 2개의 추가작업 그리고 2개의 파일을 삭제
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
|
불러오는 중…
테이블 추가
Add a link
Reference in a new issue