From e30df212d6a5ec5f60a8b1d52e491e32fe6a4572 Mon Sep 17 00:00:00 2001 From: crecher Date: Mon, 12 Oct 2026 04:40:11 +0200 Subject: cpu: add JAM instructions --- cpu/instructions.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'cpu/instructions.go') 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-- +} -- cgit v1.2.3