Oopsie, x and y mixed up
This commit is contained in:
parent
66a7d8969a
commit
19e7844aa5
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue