I can't pass the address of the linear framebuffer to vbe
I tried via:
mov eax, [ModeInfoBlock + 0x28]
mov [0x8000], eax
but 0x8000 is always zero, but if I write mov [0x8000], 0x12345, then it really works (this is in the 32-bit part).
Here is the code for getting the address:
mov ax, 4F01h
mov cx, 1000111000000010b ; 1024x768 16-bit color
mov di, ModeInfoBlock
xor bx, bx
mov es, bx
int 10h
;mov ax, 4F02h
;mov bx, 1000111000000010b
;int 10h
(this is in the 16-bit part)