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

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 what am I doing wrong?  MIPS Can't get program to print a 1 if there is

# 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!