can anyone explain this thanks A COA 730 S the 10 37 RS 00A7

can anyone explain this thanks

A COA 730 S the 10) 37 RS 00A7 3025 SP 2 CO) O32 st 4 bit by bit COT in destination om

Solution

So it explains abput the MIPS instruction format.

Like for example later in the course u will learn about ADD R1 R2 R3 . So basically these are instructions.

Instruction will have some operation to do like MUL, ADD, SUB
These are known as OPCODE i.e operation code represented by some number of bits

So if computer supports 32 bit Instruction Set:
So these 32 bits are divided among many parts ...



So, Let me write down the meaning of each:-

1. Opcode as explained
2. rs , rt is the source register 5 bit each
3. rd is the destination register same 5 bit
4. Shamt (Shift ) is used to rotate instruction i.e the amount by which rs (Source )is shifted
5. The
funct parameter contains the necessary control codes to differentiate the different instructions.


Coming the the example : 00A73025 (WE CAN SEE 32 Bit here)

000000 00101 00111 00110 01000 000101 : We divide into opcode, rs, rt, rd, shamt, function

Now for add r1,r2,r3 : r3 : desttination , r1, r2 are the source :
r3 = r1 + r2 (Obviously because its add)

Similarly, professor taught you about the one example where rd = rs + rt

He did a bit wise OR of RS and Rt to get Rd

OR as we know
1 or 0 = 1
1 or 1 = 1
0 or 0 = 0
0 or 1 = 1


Thanks, let me know if there is anything.






opcode rs rt rd shift (shamt) funct
6 bits 5 bits 5 bits 5 bits 5 bits 6 bits
can anyone explain this thanks A COA 730 S the 10) 37 RS 00A7 3025 SP 2 CO) O32 st 4 bit by bit COT in destination om SolutionSo it explains abput the MIPS inst

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site