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

35
call.asm Normal file
View File

@@ -0,0 +1,35 @@
BITS 16
CPU 8086
org 0x7300
PARAMS equ 0x7380
; dw 0: target offset
; dw 2: target segment
; dw 4: number of params
; dw 6: param 0
; ...
_start:
push bx
push si
push di
push bp
mov si, PARAMS
mov bx, 0x6
xor cx, cx
a1:
cmp cx, [es:si+4]
jge a2
lea ax, [es:si+bx]
push ax
add bl, 2
inc cl
jmp a1
a2:
call far [es:si]
pop bp
pop di
pop si
pop bx
ret