1
1
Fork 0

Oopsie, x and y mixed up

This commit is contained in:
Lauren Toivanen 2025-10-30 23:54:53 +02:00
parent 66a7d8969a
commit 19e7844aa5

View file

@ -62,14 +62,14 @@ conputchar:
; dx has the whole character cell now ; dx has the whole character cell now
xor eax, eax xor eax, eax
mov al, [txtbuf.y] mov al, [txtbuf.y]
mov bl, 25 mov bl, 80
mul bl mul bl
movzx bx, [txtbuf.x] movzx bx, [txtbuf.x]
add ax, bx add ax, bx
add ax, ax add ax, ax
add eax, 0xb8000 add eax, 0xb8000
mov [eax], dx mov [eax], dx
cmp bl, 24 cmp bl, 79
je connewline je connewline
inc bl inc bl
mov [txtbuf.x], bl mov [txtbuf.x], bl