Add a few toys

This commit is contained in:
2025-09-24 00:40:56 +02:00
parent 9daf8d7f97
commit ee97876115
8 changed files with 250 additions and 0 deletions

25
hello.asm Normal file
View File

@@ -0,0 +1,25 @@
BITS 16
CPU 8086
org 0x7200
_start:
jmp main
hw:
db "Hello, world!", 0x0d, 0x0a, 0
main:
xor bx, bx
mov si, hw
printloop:
mov al, cs:[si]
test al, al
jz done
mov ah, 0x0e
int 0x10
inc si
jmp printloop
done:
retf