original stated "adds one" in decrement instruction (copy waste from increment?)

Nicholas Walter 2018-01-29 13:45:52 +01:00
parent a5f1df0489
commit b09044bd8c

@ -877,7 +877,7 @@ destination = destination + 1
| -------- | ------ | -------- | ----- | ---- | ---- | -------- | ----- | | -------- | ------ | -------- | ----- | ---- | ---- | -------- | ----- |
| `DEC destination` | `0x2B` | `destination` : `mem` / `reg` | `-` | `X` | `X` | `X` | `-` | | `DEC destination` | `0x2B` | `destination` : `mem` / `reg` | `-` | `X` | `X` | `X` | `-` |
#### Description #### 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 ### Pseudo code
```py ```py