Something not quite right.......
Posted: Sat Aug 24, 2002 5:32 pm
I found this source code at the end of the VBE 3 pdf documentation. It claimed that this source would use vesa to switch video memory banks, but it doesn't look like it could do that:
set_struc struc
dw ? ;old bp
dd ? ;return addr (always far call)
p_bx dw ? ;reg bx value
p_dx dw ? ;reg dx value
set_struc ends
_setbxdx proc far ;must be far
push bp
mov bp,sp
mov bx,[bp]+p_bx
mov dx,[bp]+p_dx
pop bp
ret
_setbxdx endp
It said this would switch video memory banks, but I'm not quite so sure.... Does this look right? If so, how do I use it? If not, why the hell would VESA put that crap code in the VBE documentation?
[glow=red,2,300]Thanks [/glow]
set_struc struc
dw ? ;old bp
dd ? ;return addr (always far call)
p_bx dw ? ;reg bx value
p_dx dw ? ;reg dx value
set_struc ends
_setbxdx proc far ;must be far
push bp
mov bp,sp
mov bx,[bp]+p_bx
mov dx,[bp]+p_dx
pop bp
ret
_setbxdx endp
It said this would switch video memory banks, but I'm not quite so sure.... Does this look right? If so, how do I use it? If not, why the hell would VESA put that crap code in the VBE documentation?
[glow=red,2,300]Thanks [/glow]