maziac / DeZog

Visual Studio Code Debugger for Z80/ZX Spectrum.
MIT License
212 stars 35 forks source link

[Feature Request] Display PC register and T-States in zsim debug console #16

Closed kborowinski closed 4 years ago

kborowinski commented 4 years ago

Please consider adding PC register and execution time (T-States) to zsim debug console output (similarly to Zesarux remote debugging output).

Note: In case of the CALL [C,NC,Z,NZ,M,P,PE,PE] instruction the T-States should display total execution time of called branch (see picture)

dezog_zsim

maziac commented 4 years ago

Just a hint: You can view the PC and instructions also in the VARIABLES view: Bildschirmfoto 2020-04-03 um 16 56 28

kborowinski commented 4 years ago

So then maybe just add T-States to the Disassembly view? And is there a way to increase the disassembly size to more than 8 instructions?

maziac commented 4 years ago

I can add the PC output most probably also to the debug console, just wanted to make you aware of that view.

More than 8 instructions: how many do you have in mind? I could probably make this configurable but this is brute-force disassembly. I.e. as soon as some data comes in the way it is decoding data as instructions. So the probability for this to happen increases for a big number of instructions.

kborowinski commented 4 years ago

If you can add T-State output to the debug console then there's no need to increase the disassembly view.

maziac commented 4 years ago

Done (at least in develop branch). Bildschirmfoto 2020-04-30 um 13 46 27