{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

HW2 - 0306-250 Assembly Language Programming Fall 2009...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
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 A and B refer to the accumulator registers A and B . if (A <= 0) A = 0 else A = A + B 2. Write an assembly language code fragment to implement the following loop expression using a conditional branch instruction, (i.e., B cond) . Use an index register to hold the address of the array element being added to the sum. A and B refer to the accumulator registers
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}