Question
The first instruction was given as an example, but im still not sure what im trying to find or how to get any of it.
Can someone step-by-step tell me what I’m looking for? (not so much the answers but how to find them)
MAR. 1 Example instruction Comments WNL JUMP TO (Ox FORNAT Range of addres 18 mp&jal 2500 FORn Range of address: Hex link Hex
0 0
Add a comment Improve this question Transcribed image text
Answer #1

2.jump and link: this basically copy return address (value @ program counter) to $ra(return address register).

Syntax:- jal sub_label;

Ex:jal B747;

Op address
3 (address of labelB747)/4
000011 00000000011110100001001000

Range of address basically jump instruction specifies an address within the current 256mbyte region specified by PCs most significant 4 bits.

3.branch eq:- it is a conditional branch

Ex: beq src1,src2,label

Conditionally branch to the instruction at the label if the content of register src1 equal to src2.

beq v0,zero,0x9d0000b4;

If src1=src2 then PC<-PC+(address of label-pc)

PC<-PC+offset*4

4.branch ne: branch not equal

bne reg1,reg2,label;

If reg1!=reg2 then PC<-PC+offset*4

5.addiu: it is an unsigned addition. The only difference between signed and unsigned addition is that signed addition can raise an overflow exception ,so addiu is used instead to avoid that.

Ex: addiu a0,a0,0x8020 is a0=a0+0xffff8020

Add a comment
Know the answer?
Add Answer to:
The first instruction was given as an example, but im still not sure what im trying...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • 5 Exercises Now that everything is working you can try the following exercises. To complete them you will need to refer...

    5 Exercises Now that everything is working you can try the following exercises. To complete them you will need to refer to the documentation in Appendix A- The MiteASM Assembler and Appendix B - The MiteFPGA Processor. Write an assembly language program for an over counter for a cricket umpire. This should display a count on the 7-segment display. The count should increase by 1 when button 0 is 1. pressed. It should reset to 0 when button 1 is...

  • There is an example below Now that everything is working you can try the following exercises. To complete them you wi...

    There is an example below Now that everything is working you can try the following exercises. To complete them you will need to refer to the documentation in Appendix A The MiteASM Assembler and Appendix B The MiteFPGA Processor. Write an assembly language program for an over counter for a cricket umpire. This should 1. display a count on the 7-segment display. The count should increase by 1 when button 0 is pressed. It should reset to 0 when button...

  • Note: The question needs to be answered in "C Programming Languange ". And after the question fin...

    Note: The question needs to be answered in "C Programming Languange ". And after the question find 3 pages for needed informations. Spring CE4717 Language Processors Q1. Consider the following LEx program. return R1 return R2 return R3 return R4 return R5; return R6; IA-2a-z)[A-Za-z0-9]- -2 10-91+ 10-9a-EA-FI Ihi] [01] [01] 이삐 t Vtin) int main (void) int tcode; do f tcode -yylex()i printf ("token type td \"%s\"\n", tcode, yytext); ) while (tcode)i return 0; i. Explain the steps needed...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT