From b09044bd8cf2c2e5beeccb706617c593f7413bb4 Mon Sep 17 00:00:00 2001 From: Nicholas Walter Date: Mon, 29 Jan 2018 13:45:52 +0100 Subject: [PATCH] original stated "adds one" in decrement instruction (copy waste from increment?) --- Instruction-Set.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Instruction-Set.md b/Instruction-Set.md index c6be5e7..14db424 100644 --- a/Instruction-Set.md +++ b/Instruction-Set.md @@ -877,7 +877,7 @@ destination = destination + 1 | -------- | ------ | -------- | ----- | ---- | ---- | -------- | ----- | | `DEC destination` | `0x2B` | `destination` : `mem` / `reg` | `-` | `X` | `X` | `X` | `-` | #### Description -`DEC` adds one to the value of destination, replacing the previous value. Unlike [**SUB**](#sub) the carry flag is not modified. If you wish the carry flag to be modified then use `sub dest, 1` instead +`DEC` subtracts one from the value of destination, replacing the previous value. Unlike [**SUB**](#sub) the carry flag is not modified. If you wish the carry flag to be modified then use `sub dest, 1` instead ### Pseudo code ```py