Add: semi-working printf implementation

This commit is contained in:
xamidev
2024-05-26 15:43:30 +02:00
parent 61dec7fe14
commit bb775dfa5b
9 changed files with 250 additions and 2 deletions

20
io.s
View File

@@ -12,3 +12,23 @@ inb:
mov dx, [esp + 4]
in al, dx
ret
global x86_div64_32
x86_div64_32:
mov eax, [bp+8]
mov ecx, [bp+12]
xor edx, edx
div ecx
mov bx, [bp+16]
mov [bx+4], eax
mov eax, [bp+4]
div ecx
mov [bx], eax
mov bx, [bp+18]
mov [bx], edx
ret