Wednesday, February 25, 2009

Trumped up excuses...

Well.. I didn't write yesterday because I had my Final Presentation for my Summer Student Work today.. And I used my spare time to write a debugger for my emulator!

I will add a new section tomorrow or maybe later. For now I'll talk about debuggers.. Having a good debugger is really a help tool to check the errors of your emulator. Being able to break the execution at a certain instruction, doing a step to step check and some other fancy stuff is always of great help to find the small errors in your emulator.

Until now I was using the debugger that comes with Visual Studio 2008, it is a quite good debugger I must say but using it to debug a sub "program" gets a little complicated. It's true that I had a watch on each of the CPU Registers, 10 entries from the Stack(around the current SP), 10 entries from the memory(around the current PC) and other stuff. But doing the steps takes a little longer and breaking the execution at a given point gets really difficult. At some point I used some strategies to do this, but I really hated them, so I had to make my debugger..

It is really basic for now. It can take single steps, reset the cpu, start, stop, break at given PC(only one instruction, multiple coming soon!). I'd like to add this multiple breaking points resource as well as being able to change values in runtime. I now how to do both of them(I think) but I just need some time to do that. I still have to do my final report and organize everything here at the office.. and I will use some time for sports since last week I almost did nothing.

Enough complaining.. here is a picture of the debugger!



I forgot to stop it so it haven't updated the current instruction!

No comments:

Post a Comment