simple-program

Search IconIcon to open search

Source: samek-embedded

1
2
3
4
5
6
int main() {
	int counter = 0;
	++counter;
	++counter;
	return 0;
}

Machine code

Instructions

CodeInstructionDescription
int counter = 0MOVS R0, #0Move value 0 to register R0
++counter;ADDS R0, R0, #1Add value 1 to register R0, store it in R0

Registers and memory

RegisterMemory