mnemonics
stuffs that I keep forgetting
# MSR and MRS
MSR
mov from reg to sys_reg, i.e. write to system registerMRS
mov from sys_reg to reg, i.e. read from system register
________
| |
v |
MSR SCTCR, R1
MSR R1, SCTCR
^ |
|______|
# LDP and STP
STP D0, D1, [X0]
+----+ <- X0 + 16
| D1 |
+----+ <- X0 + 8
| D0 |
+----+ <- X0
instr | effect |
---|---|
ldp D1, D2, [x0] | D1=(x0), D2=(x0+5) |
ldp D1, D2, [x0, #16]! | sets x0 = x0 + 16, then D1 = *(x0), D2 = * |