Bochs / QEMU VGA Compatibility

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.
Post Reply
indiocolifa
Member
Member
Posts: 41
Joined: Sat May 24, 2008 12:41 pm
Location: La Plata, Argentina

Bochs / QEMU VGA Compatibility

Post by indiocolifa »

I'm trying to setup the bordercolor for the VGA using BIOS 0x10 services, but QEMU and Bochs does not show the border color. Anyone knows if Qemu or Bochs emulate the overscan color?

Here's the code:

Code: Select all

setupvid:
 	push	ax
 	push	bx
 	xor	bx, bx
 	mov	ax, 0x1001
 	mov	bh, 0x11		;blue
 	int	10h
 	pop	bx
 	pop	ax
	ret
Thanks.
de
Posts: 12
Joined: Tue Apr 29, 2008 2:27 pm

Post by de »

They don't, because there is no border visible around the "screen".

Border color was once visible on CRTs. Nowadays TFTs don't show the border. Like Bochs (or any other emulator I know).
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Post by Combuster »

I had a quick look at Bochs' source - Overscan is emulated, but it doesn't show for the reasons mentioned.
It does mean you can set it and read it as expected. The result is just not visible.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
Post Reply