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.
谁能告诉我以下是什么意思?0($4) 我知道这可以重写为 [0+$4]M
lw $6, 0($4)
我不确定 100($2) 部分,我知道这可以重写为 [100+$2]M
104: lw $1, 100($2)
我想知道这意味着什么
这称为索引寻址。
lw $1, 100($2)
它的意思是“将地址($2+100)处的字加载到$1”
内存地址存储在$2中。100 是该地址的偏移量。