This commit is contained in:
John Bintz 2024-03-19 22:09:42 -04:00
parent 9b0d260d5d
commit 51625bb432
1 changed files with 4 additions and 5 deletions

View File

@ -79,7 +79,7 @@ _fillScreen_loop:
_latchCopyCube:
push ebp
mov ebp,esp
; we need an x and y variable
; we need a y variable
sub esp,4 ; y
; enable latch reads
@ -99,9 +99,9 @@ _latchCopyCube:
_latchCopyCube_yLoop:
mov [ebp-4],cx ; put y back in loop
mov eax,[ebp-4] ; put y in ax
mov eax,[ebp-4] ; put y in eax
dec eax ; offset by 1 for loop
; can only multiply in ax
; can only multiply in eax by register
mov bl,80
mul bl ; number of lines
add eax,0xa0000 ; vga base address
@ -109,8 +109,7 @@ _latchCopyCube_yLoop:
; start x loop
mov cx,4
_latchCopyCube_xLoop:
; fill latches
; fill latches via memory read
mov bl, BYTE PTR [eax]
; write blank