Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要帮助来弄清楚如何将寄存器(例如 R0)的值存储在可以在另一个寄存器(例如 R1)上找到的地址线上:
AddressLine[R1] <- M[R0] if R1 = x3400 then x3400 <- M[R0]
您正在寻找 STR 指令
STR <source register> <base register> <immediate offset>
IE
AND r0,r0,#0 ; clear r0 ADD r0,r0,#10 ; r0 = 10 LEA r1,MEMSPACE ; address of MEMSPACE STR r0,r1,#0 ; M[R1 + 0] = R0 MEMSPACE .word 0 ; will become 10