Bochs video log

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
Candamir

Bochs video log

Post by Candamir »

I was wondering if there was some method in Bochs which I could use to write everything that I print on the (emulated) screen to some file. I'm not talking about bochsout.txt, but something that's like a snapshot of everything ;D. Because when I have a huge amount of information that is printed out very quickly (like a lot of core dumps), I can't retrieve that information...

Candamir
nick8325
Member
Member
Posts: 200
Joined: Wed Oct 18, 2006 5:49 am

Re:Bochs video log

Post by nick8325 »

I'm not sure if there's a way to do exactly what you want. But, Bochs will output any characters that you write to port 0xe9. So if you make your putchar function output to port 0xe9 as well as the screen, it should help.
ed_tait

Re:Bochs video log

Post by ed_tait »

The version of bochs I'm using has a 'snapshot' (the icon is a camera) option in the tool bar. this dumps all the characters on the screen to a text file. I'm using the widows 2.2.6
distantvoices
Member
Member
Posts: 1600
Joined: Wed Oct 18, 2006 11:59 am
Location: Vienna/Austria
Contact:

Re:Bochs video log

Post by distantvoices »

@ed_tait: in that case candemir 'd need to be quick enough to capture all the info scrolling over the screen.

@candemir: Try this: after printing out a dump, place a get_key or similar so that it continues upon your request. This way, debugging lots of stuff works out quite easy for you can actually see what's going on. :-) HtH

stay safe
... the osdever formerly known as beyond infinity ...
BlueillusionOS iso image
Candamir

Re:Bochs video log

Post by Candamir »

nick8325 wrote: I'm not sure if there's a way to do exactly what you want. But, Bochs will output any characters that you write to port 0xe9. So if you make your putchar function output to port 0xe9 as well as the screen, it should help.
It's exactly what I need. Thanks. But do you know what happens if I also have this outportb(0xe9,c); running on a real machine?

Candamir
Kemp

Re:Bochs video log

Post by Kemp »

It'll send the character's value to port 0xe9 :P As for what's waiting at that address, I'd guess nothing in the hope that it was chosen by the BOCHS guys purely due to it not being used for anything (or anything in common use).
User avatar
Candy
Member
Member
Posts: 3882
Joined: Tue Oct 17, 2006 11:33 pm
Location: Eindhoven

Re:Bochs video log

Post by Candy »

Try the port list that was added to Ralf Brown's Interrupt List a long time ago. I expect it'll just be nothing (literally).
Post Reply