mov r4, #1h
mov [-r0], r4
Stack
1
----------------
mov r4, #2h
mov [-r0], r4
Stack
1
2
------------------
mov r4, #3h
mov [-r0], r4
Stack
1
2
3
-----------------
mov r4, [r0]
Stack
1
2
3
r4 == 3
-----------------
mov r4, #4h
mov [r0], r4
Stack
1
2
4
-------------------
mov r4, [r0+4]
Stack
1
2
4
r4 == 1
------------------
mov r4, #5h
mov [r0+4], r4
Stack
5
2
4
-------------------
mov r4, [r0+2]
Stack
5
2
4
r4 == 2
-----------------
mov r4, [r0+]
Stack
5
2
r4 == 4
----------------
add r0, #2h
stack
5
Edit: Corrected
nice, you tried tricore yet, they like the stack lol