Get sweet R/G/B positions as numbers for debugging
This commit is contained in:
parent
e4172c14bb
commit
a0ba839215
1 changed files with 52 additions and 0 deletions
|
@ -97,6 +97,52 @@ start:
|
||||||
call serialwrite
|
call serialwrite
|
||||||
add esp, 4
|
add esp, 4
|
||||||
|
|
||||||
|
|
||||||
|
push stuff.rpostxt
|
||||||
|
call serialwrite
|
||||||
|
add esp, 4
|
||||||
|
|
||||||
|
push dword esp
|
||||||
|
push dword 10
|
||||||
|
xor eax, eax
|
||||||
|
mov al, [mbootinfo.fb_rpos]
|
||||||
|
push dword eax
|
||||||
|
call __uitoa
|
||||||
|
add esp, 3*4
|
||||||
|
push esp
|
||||||
|
call serialwrite
|
||||||
|
add esp, 4
|
||||||
|
|
||||||
|
push stuff.gpostxt
|
||||||
|
call serialwrite
|
||||||
|
add esp, 4
|
||||||
|
|
||||||
|
push dword esp
|
||||||
|
push dword 10
|
||||||
|
xor eax, eax
|
||||||
|
mov al, [mbootinfo.fb_gpos]
|
||||||
|
push dword eax
|
||||||
|
call __uitoa
|
||||||
|
add esp, 3*4
|
||||||
|
push esp
|
||||||
|
call serialwrite
|
||||||
|
add esp, 4
|
||||||
|
|
||||||
|
push stuff.bpostxt
|
||||||
|
call serialwrite
|
||||||
|
add esp, 4
|
||||||
|
|
||||||
|
push dword esp
|
||||||
|
push dword 10
|
||||||
|
xor eax, eax
|
||||||
|
mov al, [mbootinfo.fb_bpos]
|
||||||
|
push dword eax
|
||||||
|
call __uitoa
|
||||||
|
add esp, 3*4
|
||||||
|
push esp
|
||||||
|
call serialwrite
|
||||||
|
add esp, 4
|
||||||
|
|
||||||
add esp, 36 ;Clean reserved uitoa return string from stack
|
add esp, 36 ;Clean reserved uitoa return string from stack
|
||||||
|
|
||||||
; Draw a test pixel to bottom right corner
|
; Draw a test pixel to bottom right corner
|
||||||
|
@ -132,6 +178,7 @@ rOSkalogodraw:
|
||||||
cmp byte bl, [roskalogo.h]
|
cmp byte bl, [roskalogo.h]
|
||||||
jne .loop
|
jne .loop
|
||||||
.done:
|
.done:
|
||||||
|
jmp hang
|
||||||
|
|
||||||
|
|
||||||
xor eax, eax
|
xor eax, eax
|
||||||
|
@ -189,6 +236,11 @@ stuff:
|
||||||
.fbdimensionsmsgpfx db 10, "Framebuffer dimensions: ", 0
|
.fbdimensionsmsgpfx db 10, "Framebuffer dimensions: ", 0
|
||||||
.x db "x", 0
|
.x db "x", 0
|
||||||
|
|
||||||
|
|
||||||
|
.rpostxt db 10, "rPos: ", 0
|
||||||
|
.gpostxt db 10, "gPos: ", 0
|
||||||
|
.bpostxt db 10, "bPos: ", 0
|
||||||
|
|
||||||
align 4096
|
align 4096
|
||||||
bss_start:
|
bss_start:
|
||||||
;align 4096
|
;align 4096
|
||||||
|
|
Loading…
Add table
Reference in a new issue