Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
i want to operate vesa card int protect model especially i want to set bank/page number which can be down in real model via vbe function 5.
but i failed too many times in protect model:(
first, i want to return back real model from protect model and use int 0x10 via vbe function 5 to finish it, but failed
then, i want to via vesa 2.0 protect model interface ( get it via function 0x0a ), but bochs don't support it even if vmmare.
so i failed too
how can it do it?
thank you very much!
I won't waste my time with the protected mode VESA interface. I'd either do it with a combo of in() and out() - or use VBE 2.0 linear framebuffer. That's the most elegant possibility.
HTH.
PS: the linear framebuffer is entered in a field of the mode information you can obtain from VBE 2.0 via vbe-bios call. Look it up, it isn't that hard to find. Mark: the address of the linear framebuffer which you get from your video card is a physical address. You have to map it into your address space.
PS: go here and down load CdPod, this sets up vesa2 goes to pmode draws a 640x480 24bit, i-pod image and has a atapi drive for the cd player and switch's to real mode and back if the wrong type of 24bit graphic's (eg: some use XRGB and some use RGB) and switch's to textmode and goes back to pmode and plays cd's.
Take's user in put from menu and prints to screen (no bios,all done in pmode)
ALL IN 512bytes, yes it fit's on the boot sector of a floppy.
Try it from here: http://512.decard.net/?body=entries
beyond infinity wrote:
I won't waste my time with the protected mode VESA interface. I'd either do it with a combo of in() and out() - or use VBE 2.0 linear framebuffer. That's the most elegant possibility.
HTH.
PS: the linear framebuffer is entered in a field of the mode information you can obtain from VBE 2.0 via vbe-bios call. Look it up, it isn't that hard to find. Mark: the address of the linear framebuffer which you get from your video card is a physical address. You have to map it into your address space.
thank you for your reply.
i do it via linear framebuffer. it works well now.but i don't map it into my address space.this is my puzzle.why don't i need to map it?
ASHLEY4 wrote:
PS: go here and down load CdPod, this sets up vesa2 goes to pmode draws a 640x480 24bit, i-pod image and has a atapi drive for the cd player and switch's to real mode and back if the wrong type of 24bit graphic's (eg: some use XRGB and some use RGB) and switch's to textmode and goes back to pmode and plays cd's.
Take's user in put from menu and prints to screen (no bios,all done in pmode)
ALL IN 512bytes, yes it fit's on the boot sector of a floppy.
Try it from here: http://512.decard.net/?body=entries
Hi, i have a vesa demo i made that set up vesa, go to pmode, does a vesa demo, switch's back to realmode, switch's mode and goes back to pmode does a demo etc, With full asm code, let me know if you want it.
ps: If you like "CdPod" maybe you could rate it itjavascript:wink() .
Hi, you can get it from my site, http://www.falconrybells.co.uk/
it's called "DemoVesa.zip" you need vesa 2 to use it.
All i ask is that if you try it, just report that it works or not works with your pc, nothing make's me mad, more that people not giving feedback.