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".
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
Done, and merged into both trunk and v1.2.
Committed in [r5517].
Related
Commit: [r5517]