aboutsummaryrefslogtreecommitdiff
path: root/sim/tic80/insns
diff options
context:
space:
mode:
authorMichael Meissner <gnu@the-meissners.org>1997-05-08 19:58:20 +0000
committerMichael Meissner <gnu@the-meissners.org>1997-05-08 19:58:20 +0000
commit1e0e7911a5eb37ae2e5eecf14b393180ab0137aa (patch)
treecd3bd18cedf4845e5f45da56e3612431e892faa2 /sim/tic80/insns
parent53dcd669e504fb892aaca0b3c7a99aea559aac7a (diff)
downloadgdb-1e0e7911a5eb37ae2e5eecf14b393180ab0137aa.zip
gdb-1e0e7911a5eb37ae2e5eecf14b393180ab0137aa.tar.gz
gdb-1e0e7911a5eb37ae2e5eecf14b393180ab0137aa.tar.bz2
reverse bit number for bbo/bbz instructions.
Diffstat (limited to 'sim/tic80/insns')
-rw-r--r--sim/tic80/insns4
1 files changed, 2 insertions, 2 deletions
diff --git a/sim/tic80/insns b/sim/tic80/insns
index 7c16213..6527833 100644
--- a/sim/tic80/insns
+++ b/sim/tic80/insns
@@ -107,7 +107,7 @@ void::function::do_and:signed32 *rDest, signed32 Source1, signed32 Source2
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;
@@ -131,7 +131,7 @@ instruction_address::function::do_bbo:instruction_address nia, int bitnum, unsig
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;