Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

la cao, prompt Your Turn Jal PromptInt move $30, Svo seg sto, 30, -1 Calculate the Branch Amounts and assemble the instructions into Machine Code

image text in transcribed

la cao, prompt Your Turn Jal PromptInt move $30, Svo seg sto, 30, -1 Calculate the Branch Amounts and assemble the instructions into Machine Code for the statements on lines 9, 14, 17 and 27 nes Sto, Endloop 10. Tu: Note: On 27, don't forget sign extension. Address Code Basic 0x00400000 Ox30011001 lut 01.0x00001001 4 : Ox00400004 0x34240000 OF 24.01.0x00000000 Ox00400000 Oxoc10002a jal 0x004000a8 S: Ox0040000 O00020021 adde 316, 30,52 6: OwO0400010 Ox200174ff adds 61,60, Oxfree! 0: Ox00400014 Ox02014023 sub 30.516,1 Ox00400018 0x34010001 - 41,40, 0x00000001 Ox0040001c 0x0101402 site 50.8.1 0x00400020 be 60.00 Ox00400024 0x30011001 lut $1.000001001 10: Ox00400020 Ox3424001d ori 64,61, 0x0000001d Ox0040002c Ox00102821 adide 35, 50, 516 Ox00400030 OxO100024 al 0x00400090 12: Ox004000340x2a000064 st 58,16, 0x00000064 13: Ox00400030 beg 20,0 Ox0040003c Ox30011001lus 31. 0200001001 1 5: Ox00400040 034240041 or $4,61, 0x00000041 Ox00400044 Oxbe100030 al 0x00400000 0x0040004 bge: 30, 17: Ox0040004c Ox30011001 lus 81.0x00001001 Ox004000500x3424002b Of 44.51, 0x0000002b Ox00400054 Oxoc100030 al 0x00400000 20: Ox00400050 Ox30011001 la 61, 0x00001001 Ox0040005 0x3424005 ori 54,51, 0x0000005 Ox00400000 OxO100030 al 0x00400000 23: Ox004000640x3c011001 lus 51, 0x00001001 24: Ox00400068 0x34240000 or $4,41, 0x00000000 0x0040006c OxO10002a Jal 0x004000a 0x00400070 Ox00020021 addu $16,50,42 Ox00400074 bges 0. Os00400078 Ox0100033 al 0x004000cc 29: move sal, 30 jal Printint alti Sto, 80, 100 bega CC0, BigNuwber l 0, 1 . Jal Print String b EndI la cao, big jal Print String l 10, that jal Print String la ca prompt al Prompt Int move 80. Ovo b BeginLoop jal Exit 27: la cao, prompt Your Turn Jal PromptInt move $30, Svo seg sto, 30, -1 Calculate the Branch Amounts and assemble the instructions into Machine Code for the statements on lines 9, 14, 17 and 27 nes Sto, Endloop 10. Tu: Note: On 27, don't forget sign extension. Address Code Basic 0x00400000 Ox30011001 lut 01.0x00001001 4 : Ox00400004 0x34240000 OF 24.01.0x00000000 Ox00400000 Oxoc10002a jal 0x004000a8 S: Ox0040000 O00020021 adde 316, 30,52 6: OwO0400010 Ox200174ff adds 61,60, Oxfree! 0: Ox00400014 Ox02014023 sub 30.516,1 Ox00400018 0x34010001 - 41,40, 0x00000001 Ox0040001c 0x0101402 site 50.8.1 0x00400020 be 60.00 Ox00400024 0x30011001 lut $1.000001001 10: Ox00400020 Ox3424001d ori 64,61, 0x0000001d Ox0040002c Ox00102821 adide 35, 50, 516 Ox00400030 OxO100024 al 0x00400090 12: Ox004000340x2a000064 st 58,16, 0x00000064 13: Ox00400030 beg 20,0 Ox0040003c Ox30011001lus 31. 0200001001 1 5: Ox00400040 034240041 or $4,61, 0x00000041 Ox00400044 Oxbe100030 al 0x00400000 0x0040004 bge: 30, 17: Ox0040004c Ox30011001 lus 81.0x00001001 Ox004000500x3424002b Of 44.51, 0x0000002b Ox00400054 Oxoc100030 al 0x00400000 20: Ox00400050 Ox30011001 la 61, 0x00001001 Ox0040005 0x3424005 ori 54,51, 0x0000005 Ox00400000 OxO100030 al 0x00400000 23: Ox004000640x3c011001 lus 51, 0x00001001 24: Ox00400068 0x34240000 or $4,41, 0x00000000 0x0040006c OxO10002a Jal 0x004000a 0x00400070 Ox00020021 addu $16,50,42 Ox00400074 bges 0. Os00400078 Ox0100033 al 0x004000cc 29: move sal, 30 jal Printint alti Sto, 80, 100 bega CC0, BigNuwber l 0, 1 . Jal Print String b EndI la cao, big jal Print String l 10, that jal Print String la ca prompt al Prompt Int move 80. Ovo b BeginLoop jal Exit 27

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Using Equity Audits To Create Equitable And Excellent Schools

Authors: Linda E. Skrla, Kathryn B. McKenzie, James Joseph Scheurich

1st Edition

1412939321, 978-1412939324

Students also viewed these Accounting questions

Question

3. Evaluate your listeners and tailor your speech to them

Answered: 1 week ago