Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Info-topics support on the debugger. Was: overlay for raster [sf#241] #40

Open
openMSX-import opened this issue Jun 24, 2015 · 4 comments

Comments

@openMSX-import
Copy link

Reported by sd-snatcher on 2012-09-25 02:11 UTC

The VDP implementation of openMSX certainly knows the current pixel being drawn by the rasterizer at a given moment. It would be useful to have an overlay (a toggle, like toggle_scc_viewer) to show the coordinates of the pixel currently being drawn by the VDP.

Due to the speed, this overlay will of course only be useful when running openMSX on step-by-step while debugging. This will help the programmer to:

- Know when certain events will be triggered (vblank interrupt, line interrupt)

  • Debug why a sprite drawing glitch is happening (usually because of concurrent VRAM writes while the rasterizer is at a that address)
  • Debug splitscreen glitches
@openMSX-import
Copy link
Author

Commented by m9710797 on 2012-09-25 08:56 UTC
This is already possible. I mean this request doesn't need changes on the c++ side, someone only needs to write a Tcl script to show the overlay.

The required information can be obtained via the following info topics (machine_info <topic-name>):
-VDP_frame_count
-VDP_cycle_in_frame
-VDP_line_in_frame ()
-VDP_cycle_in_line (
)
-VDP_msx_y_pos (#)
-VDP_msx_x256_pos (#)
-VDP_msx_x512_pos (#)
(*) Redundant, these could be calculated from VDP_cycle_in_frame
(#) Redundant, these could be calculated from VDP_cycle_in_frame plus 'set adjust' information.
Use 'help machine_info <topic-name>' for more details on a certain topic.
(Use 'machine_info' (so without any parameters) to get a list of all available topics. Or 'openmsx_info' for topics that are not
msx machine specific).

I'm not convinced an overlay is the best way to go. We also don't make overlays for e.g. the Z80 registers. Instead such 'debuggables' are shown in the debugger. It might be a good idea to also show info topics in the debugger.

BTW the difference between debuggables and info topics is that debuggables are always a byte array while info topics only have a single value per topic (but they are not necessarily limited to a byte, some are even strings).

@openMSX-import
Copy link
Author

Updated by m9710797 on 2012-09-25 08:56 UTC

  • labels: --> Debugger

@openMSX-import
Copy link
Author

Commented by sd-snatcher on 2012-09-25 22:22 UTC
I didn't knew about the info-topics. If the debugger could support those, this could be even better than the overlay idea.

@openMSX-import
Copy link
Author

Updated by sd-snatcher on 2012-09-25 22:24 UTC

  • summary: Show current raster coordinates overlay, for debugging --> Info-topics support on the debugger. Was: overlay for raster

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant