Menu

#97 Allow debugger to examine memory locations

v1.2
closed
5
2016-05-23
2016-05-17
No

It would occasionally be useful for the debugger to be able to examine memory locations - for instance, "break if the contents of HL are 0xff".

In "natural" Z80 terms, that condition could be expressed as "break 0x1234 if (HL) == 0xff", but that conflicts too much with the use of parentheses for precedence - hence I propose "break 0x1234 if [HL] == 0xff".

Discussion

  • Philip Kendall

    Philip Kendall - 2016-05-17

    Well, that was easier than I thought :-)

    Implementation now done in the 2016-05-17-debugger-dereference branch, or attached here as a patch. For a test case, compile the attached breakpoint.asm with Pasmo and then do something like "break 0xc003 if [hl] == 3".

    I'll merge this onto trunk sometime soon unless there are any comments etc. Should we put this into the 1.2 branch as well?

     

    Last edit: Philip Kendall 2016-05-17
  • Philip Kendall

    Philip Kendall - 2016-05-23
    • status: open --> closed
     
  • Philip Kendall

    Philip Kendall - 2016-05-23

    Done, and merged into both trunk and v1.2.

     
  • Sergio Baldoví

    Sergio Baldoví - 2016-05-23
    • Group: future --> v1.2
     
  • Sergio Baldoví

    Sergio Baldoví - 2016-05-23

    Committed in [r5517].

     

    Related

    Commit: [r5517]


Log in to post a comment.

Auth0 Logo