aboutsummaryrefslogtreecommitdiff
path: root/sim/tic80/ic
diff options
context:
space:
mode:
Diffstat (limited to 'sim/tic80/ic')
-rw-r--r--sim/tic80/ic2
1 files changed, 2 insertions, 0 deletions
diff --git a/sim/tic80/ic b/sim/tic80/ic
index 54a2550..17067fb 100644
--- a/sim/tic80/ic
+++ b/sim/tic80/ic
@@ -40,6 +40,8 @@ compute:UnsignedImmediate:vSource1:signed_word:UnsignedImmediate
#
compute:BITNUM:BITNUM:
compute:Code:Code:
+compute:BITNUM:bitnum:int:(~BITNUM) & 0x1f
+
#
compute:SignedOffset:SignedOffset:
compute:SignedOffset:vSignedOffset:signed_word:SEXT (SignedOffset, 14)