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