1
1
Fork 0

Framebuffer putpixel LEGGOOO! (disabled paging lol)

This commit is contained in:
Lauren Toivanen 2023-08-02 20:16:43 +03:00
parent 8709de5747
commit 3c121e97f4
Signed by: jt
GPG key ID: 9151B109B73ECAD5
3 changed files with 121 additions and 41 deletions

View file

@ -65,6 +65,12 @@ mbootgetinfo:
mov edi, mbootinfo.fb_rpos
rep movsb
.bytesppcalc:
xor eax, eax
mov al, [mbootinfo.fb_bpp]
mov ebx, 8
div bl
mov [mbootinfo.fb_bytespp], al
.done:
pop edi
pop esi
@ -116,3 +122,4 @@ mbootinfo:
.fb_gmasksize db 0
.fb_bpos db 0
.fb_bmasksize db 0
.fb_bytespp db 0