컴퓨터구조
MIPS representing instruction
YoonJongSeok
2023. 1. 15. 15:07
instruction들은 2진수로 번역되어야한다. green sheet에 번호들이 나와있다.
간단한 add 명령어를 2진수로 바꿔볼 것이다.
add $t0, $s1, $s2
add 명령어는 R타입이고 opcode는 0, funct는 20인 16진수이다.
register number를 보고 맞게 써주면 된다.
이런식으로 번역해주는 것이다.