Page 1 of 1

resize bochs vga screen

Posted: Thu Mar 14, 2013 4:02 pm
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.

Re: resize bochs vga screen

Posted: Thu Mar 14, 2013 4:28 pm
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.