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.
谁能告诉我ALT和SLT之间的区别?
另一件事:SRA指令如何使用shamt?
SRA
shamt
参考:https ://web.archive.org/web/20201111203150/http://www.mrc.uidaho.edu/mrc/people/jff/digital/MIPSir.html
SRA是算术右移,这意味着它在原始符号位中移动而不是零。
例如:
li $t0,0x80000000 sra $t0,$t0,4 # $t0 now contains 0xF8000000 li $t0,0x40000000 sra $t0,$t0,4 # $t0 now contains 0x04000000