simple-program
Source: samek-embedded
| |
Machine code

Instructions
| Code | Instruction | Description |
|---|---|---|
int counter = 0 | MOVS R0, #0 | Move value 0 to register R0 |
++counter; | ADDS R0, R0, #1 | Add value 1 to register R0, store it in R0 |
Registers and memory
| Register | Memory |
|---|---|
![]() | ![]() |

