fixes
This commit is contained in:
parent
9b0d260d5d
commit
51625bb432
9
vga.asm
9
vga.asm
@ -79,7 +79,7 @@ _fillScreen_loop:
|
|||||||
_latchCopyCube:
|
_latchCopyCube:
|
||||||
push ebp
|
push ebp
|
||||||
mov ebp,esp
|
mov ebp,esp
|
||||||
; we need an x and y variable
|
; we need a y variable
|
||||||
sub esp,4 ; y
|
sub esp,4 ; y
|
||||||
|
|
||||||
; enable latch reads
|
; enable latch reads
|
||||||
@ -99,9 +99,9 @@ _latchCopyCube:
|
|||||||
_latchCopyCube_yLoop:
|
_latchCopyCube_yLoop:
|
||||||
mov [ebp-4],cx ; put y back in loop
|
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
|
dec eax ; offset by 1 for loop
|
||||||
; can only multiply in ax
|
; can only multiply in eax by register
|
||||||
mov bl,80
|
mov bl,80
|
||||||
mul bl ; number of lines
|
mul bl ; number of lines
|
||||||
add eax,0xa0000 ; vga base address
|
add eax,0xa0000 ; vga base address
|
||||||
@ -109,8 +109,7 @@ _latchCopyCube_yLoop:
|
|||||||
; start x loop
|
; start x loop
|
||||||
mov cx,4
|
mov cx,4
|
||||||
_latchCopyCube_xLoop:
|
_latchCopyCube_xLoop:
|
||||||
|
; fill latches via memory read
|
||||||
; fill latches
|
|
||||||
mov bl, BYTE PTR [eax]
|
mov bl, BYTE PTR [eax]
|
||||||
|
|
||||||
; write blank
|
; write blank
|
||||||
|
Loading…
Reference in New Issue
Block a user