resize bochs vga screen

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
steven765
Posts: 21
Joined: Tue Feb 22, 2011 3:28 pm

resize bochs vga screen

Post by steven765 »

I can't seem to get the vga options to display qutie right:

Code: Select all

	## Set video mode to 80x25 for basic console.
	movw $0x1202, %ax  #set the scan rate to 400
	mov $0x30, %bl
	int $0x10
	mov $3,%ax              # Video mode 80x25x16
	int $0x10               # Interrupt (set video mode)
	mov $0x1104,%ax         # smaller text =  more lines
	mov $0,%bx              # 
	int $0x10               # Interrupt (set video mode)
	mov $0x1003,%ax         # Toggle blinking
	int $0x10               # Interrupt (set video mode)
If i make the smaller text line = 1112, the text is squished and fits on screen, but if i try the larger character set in the code above the lines just scroll out of view and if you hit return enough the terminal appears. So it's there, I just can't seem to find the correct command to tell bochs to resize the window.
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:

Re: resize bochs vga screen

Post by Combuster »

That's because you never change the resolution because the height is already 400 for mode 3, you're only changing the font. Use different AH=0x00 or AH=0x4F calls to get the resolution you want.
"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