Has someone defined/allocated an opcode for a breakpoint instruction in HP-41 MCODE? (Similar to what was done with the WRITE-MLDL 040 instruction.)
HP-41 MCODE breakpoint/trap instruction?
|
03-13-2011, 05:12 PM
03-13-2011, 06:55 PM
Not that I've heard. In my simulator, I track breakpoints in a separate array, so that I don't have to modify the code at all. Alternatively, one could use an extra bit stored in the same array as the code, effectively extending the word from ten to eleven (or more) bits. Some simulators have used extra bits in that fashion to define new instructions, extend the addressing range of existing instructions, etc.
03-14-2011, 04:09 AM
I used the 080h opcode for breakpoints in Emu41. BTW, I also defined a FPU extension opcode (0C0h), but I never implemented it. It was supposed to be a 2-word opcode (0C0h xxxh) to speed up math routines in emulators. J-F
03-15-2011, 08:22 AM
Great! Then I go for 080h.
Quote:
03-15-2011, 08:40 AM
Great ideas! They are both easier than rewriting the instructions. I will start with the challenge of rewriting the code anyway, as I am interested in trying it out.
Quote: |
« Next Oldest | Next Newest »
|