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
Bochs video log
Re:Bochs video log
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.
Re:Bochs video log
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
-
- Member
- Posts: 1600
- Joined: Wed Oct 18, 2006 11:59 am
- Location: Vienna/Austria
- Contact:
Re:Bochs video log
@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
@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
BlueillusionOS iso image
Re:Bochs video log
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?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.
Candamir
Re:Bochs video log
It'll send the character's value to port 0xe9 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).
Re:Bochs video log
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).