|Re: [hatari-devel] Debugger 'n' command|
[ Thread Index |
| More lists.tuxfamily.org/hatari-devel Archives
Le 10/04/2016 23:40, Eero Tamminen a écrit :
The reason why it's not currently supported, is that branching
can also be forwards. Then "n" command breakpoint for the next
instruction might never terminate, which IMHO is worse than
lacking support for skipping loops.
Does somebody feel adding support for determining when instruction
at PC is a branch going backwards? :-)
For bne/beq it would be more complicated, but in the case of dbcc it
will mostly be backward ; dbcc uses 2 words, 1 with the opcode, 1 with
the displacement ; if the the 2nd word is <0, then it will go backward
and a breakpoint after the dbcc will work.
format for DBcc is : 0101 cccc 1100 1rrr . so if ( opcode & 0x50A8 ) ==
0x50a8, then you have a DBcc and you can check the next word.