Scrolling doesn't work in Bochs

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
leledumbo
Member
Member
Posts: 103
Joined: Wed Apr 23, 2008 8:46 pm

Scrolling doesn't work in Bochs

Post by leledumbo »

I'd like to ask this a long time ago, but I always forgot since I prefer using QEMU. My screen scrolling code works fine under QEMU but not under Bochs. Here's my bxrc file:

Code: Select all

###############################################################
# bochsrc.bxrc file for FPOS cdrom image.
###############################################################

megs: 128
romimage: file=C:\Bochs\BIOS-bochs-latest
vgaromimage: file=C:\Bochs\VGABIOS-lgpl-latest
ata0-master: type=cdrom, path="fpos.iso"
boot: cdrom
log: fpos.log
mouse: enabled=0
clock: sync=realtime
cpu: ips=500000
Do I miss some options or something? The code is taken from Bran's Kernel Development Tutorial.
jzgriffin
Member
Member
Posts: 190
Joined: Tue Sep 26, 2006 1:40 pm
Libera.chat IRC: Nokurn
Location: Ontario, CA, USA
Contact:

Re: Scrolling doesn't work in Bochs

Post by jzgriffin »

Could we see your scrolling code?
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: Scrolling doesn't work in Bochs

Post by Combuster »

Bochs' VGA emulation is minimalistic and it wouldn't amaze me if the register was unimplemented.
"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 ]
stlw
Member
Member
Posts: 357
Joined: Fri Apr 04, 2008 6:43 am
Contact:

Re: Scrolling doesn't work in Bochs

Post by stlw »

cpu: ips=500000
BTW, you have very nice IPS settings. This might be correct one only if you emulating 8 wide SMP system or running emulator on some kind of old good 486 computer.
Normal settings for any modern host should at least 25x of this value, when Core 2 Duo 2667 Mhz has 75x of this value.
BTW, IPS affects everything in the emulation, even might affect your scrolling as well :)

Stanislav
Post Reply