Higher traps on Q68
Posted: Fri Mar 15, 2024 12:45 pm
On QPC and my QLs, I'm using TRAP #15 instructions with beacon strings to trap into QMON. This works nicely: When QMON sees a TRAP 15, it will break the program at the current PC (I'm using macros to create a TRAP #15 and strings to show me where I am).
This, unfortunately, does not work on my Q68 (it simply seems to ignore the instruction). Is this something that is known and maybe has been fixed in newer releases of the core?
(This allows me to do a "d *" after the trap which shows the string and I know where I am without referring to address offsets)
This, unfortunately, does not work on my Q68 (it simply seems to ignore the instruction). Is this something that is known and maybe has been fixed in newer releases of the core?
Code: Select all
DEBUG MACRO reason
EXPAND
IFNUM [NDEBUG] = 1 GOTO NIX
trap #15 ; enter debugger
bra.s .over[.L] ; jump over beacon
dc.b [reason]
ds.w 0
.over[.L]
NIX MACLAB
ENDM