...

/

Incrementing and Decrementing Numbers

Incrementing and Decrementing Numbers

Learn how to increment or decrement the contents in registers and memory cells.

Instructions to increment/decrement numbers

In pseudocode, incrementing or decrementing the number stored in location (address) a looks very simple:

Press + to interact
[a] <- [a] + 1 //Increment by 1
[a] <- [a] - 1 //Decrement by 1
...