Not the whole screenbuffer width was accessible

This commit is contained in:
Jarkko Toivanen 2023-09-06 20:28:25 +03:00
parent 1b9f7f8ee5
commit 55fb99f0e1
Signed by: jt
GPG Key ID: 9151B109B73ECAD5
2 changed files with 11 additions and 1 deletions

View File

@ -17,7 +17,8 @@ putpixel:
add edi, eax
mov eax, [ebp+8] ;x
mul byte [mbootinfo.fb_bytespp]
movzx ebx, byte [mbootinfo.fb_bytespp]
mul ebx
add edi, eax

View File

@ -98,6 +98,15 @@ start:
add esp, 36 ;Clean reserved uitoa return string from stack
; Draw a test pixel to bottom right corner
mov eax, 0xff
mov ebx, 767
mov ecx, 1023
push 0xff
push 767
push 1023
call putpixel
add esp, 3*4
rOSkalogodraw:
mov esi, roskalogo