* insns (jsr,bsr): For non-allulled calls, set r31 so that the
return address does not reexecute the instruction in the delay
slot.
+ (bbo,bbz): Reverse bit number.
* misc.c (tic80_trace_*): Change format slightly to accomidate
real large decimal values.
instruction_address::function::do_bbo:instruction_address nia, int bitnum, unsigned32 source, int annul, unsigned32 offset
int jump_p;
unsigned32 target = cia.ip + 4 * offset;
- if (MASKED32 (source, bitnum, bitnum))
+ if (MASKED32 (source, 32 - bitnum, 32 - bitnum))
{
if (annul)
nia.ip = -1;
instruction_address::function::do_bbz:instruction_address nia, int bitnum, unsigned32 source, int annul, unsigned32 offset
int jump_p;
unsigned32 target = cia.ip + 4 * offset;
- if (!MASKED32 (source, bitnum, bitnum))
+ if (!MASKED32 (source, 32 - bitnum, 32 - bitnum))
{
if (annul)
nia.ip = -1;