aboutsummaryrefslogtreecommitdiff
path: root/cpu/instructions.go
diff options
context:
space:
mode:
Diffstat (limited to 'cpu/instructions.go')
-rw-r--r--cpu/instructions.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/cpu/instructions.go b/cpu/instructions.go
index b390f5c..b74a2db 100644
--- a/cpu/instructions.go
+++ b/cpu/instructions.go
@@ -221,3 +221,8 @@ func iscExec(c *CPU, op operand) {
c.writeOperand(op, v)
c.addWithCarry(^v)
}
+
+func jamExec(c *CPU, op operand) {
+ c.Jammed = true
+ c.PC--
+}