Page 1 of 1 0306-250 Assembly Language Programming Fall 2009 Homework Two 1. Write an assembly language code fragment to implement the following conditional expression, where Aand Brefer to the accumulator registers Aand B. if (A <= 0) A = 0 else A = A + B 2. Write an assembly language code fragment to implement the following loop expression using aconditional branch instruction, (i.e., Bcond). Use an index register to hold the address of the array element being added to the sum. Aand Brefer to the accumulator registers
This is the end of the preview.
access the rest of the document.