mirror of
https://github.com/simon987/Much-Assembly-Required.git
synced 2025-04-19 18:46:43 +00:00
original stated "adds one" in decrement instruction (copy waste from increment?)
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user