MIPS # Program Name: Test # Programme r : Corey Easton # Date 8 March, 2016 ·dat
ID: 3675692 • Letter: M
Question
MIPS # Program Name: Test # Programme r : Corey Easton # Date 8 March, 2016 ·data # Data declarat iter 8 prompt: .asci iz " bit address is 10 text 12 main: # Start of code section 13 11 Svo, 4 14 15 la $a0, prompt #loads address of prompt li t1, 1 syscall 11 Svo, 5 syscal1 1-1 read in interger provided by prompt #move address given by prompt into $t2 17 191 move St2, Sao 20 21 22: 23 24 25 end: 26 move St2, ao and $t3, St1, St2 beqz St3, end move Sao, St3 1i syscall $v0, 10 #Load 10, terminate program 27 Col 1 Ch 1 ReadyExplanation / Answer
Hi the out_string line is missing that load address of string to be printed ,Try this for your reference,
Include la $a0, out_string before syscall,
li $v0, 4
la $a0, prompt
li $t1, 1
la $a0, out_string # load address of string to be printed into $a0
syscall
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.