From 30677611d879ae12e5d9d9464400def4da744909 Mon Sep 17 00:00:00 2001 From: Giulio De Pasquale Date: Wed, 24 May 2017 13:02:05 +0200 Subject: [PATCH] =?UTF-8?q?GRMN=20non=20frega=20pi=C3=B9=20RP=20e=20IP?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vm/vm.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vm/vm.cpp b/vm/vm.cpp index b7b6bd8..abd1ad7 100644 --- a/vm/vm.cpp +++ b/vm/vm.cpp @@ -681,7 +681,9 @@ bool VM::execRETN(void) { bool VM::execGRMN(void) { uint8_t i; for (i = 0; i < NUM_REGS; i++) { - regs[i] = 0x4747; + if (i != IP && i != RP) { + regs[i] = 0x4747; + } } return true; }