From d01211f10f382c8a884a0eef485198196b24b472 Mon Sep 17 00:00:00 2001 From: Jeremiah Orians Date: Tue, 22 Jan 2019 18:53:42 -0500 Subject: [PATCH] Fixed bug found by stoopkid, thank you --- CHANGELOG.org | 1 + ISA_HEX_Map.org | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.org b/CHANGELOG.org index cf619b1..ab26d99 100644 --- a/CHANGELOG.org +++ b/CHANGELOG.org @@ -28,6 +28,7 @@ updated stage3/get_machine.c to new form for M2-Planet Add debug label Correct sha256sum that wasn't updated by change Fixed checksums that were wrong in previous commit +Fixed description of RET to clarify order of operations ** Removed diff --git a/ISA_HEX_Map.org b/ISA_HEX_Map.org index 3f81bb6..579f17f 100644 --- a/ISA_HEX_Map.org +++ b/ISA_HEX_Map.org @@ -406,10 +406,10 @@ The Opcodes will be preserved should we wish in the future to be binary compatab | 0D 00 FF Fx | Reserved | **** Function return group -| Hex | Name | Comment | -|-------------+-----------------+-----------------------------------------------| -| 0D 01 00 0a | JSR_COROUTINE a | PC = a | -| 0D 01 00 1a | RET a | PC = MEM[a]; a = a - (register size in bytes) | +| Hex | Name | Comment | +|-------------+-----------------+-----------------------------------------------------------| +| 0D 01 00 0a | JSR_COROUTINE a | PC = a | +| 0D 01 00 1a | RET a | a = a - (register size in bytes); PC = MEM[a]; MEM[a] = 0 | **** Reserved block 1 | Hex | Name |