From 51625bb432d1f20b68a4fd1d1796eecfc707f4b0 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Tue, 19 Mar 2024 22:09:42 -0400 Subject: [PATCH] fixes --- vga.asm | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/vga.asm b/vga.asm index cee73f5..55c7995 100644 --- a/vga.asm +++ b/vga.asm @@ -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