Question: MIPS Can't get program to print a 1 if there is a 1 in the first byte of a bit string, if not end program
# 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 Ready
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
