This preview shows page 1. Sign up to view the full content.
Unformatted text preview: g) EA=[Ri]; increment Ri 2. [30 pts] Re-write the C-language statement a=b+3; using zero or more instances of the following assembly language instructions: Add , Branch , Move , and/or Decrement . Assume the variables a and b are stored at locations A and B in main memory, respectively. Use only two-operand instructions and only one general purpose register. Move B, R1 Add #3, R1 Move R1, A 3. [10 pts] Write the Register Transfer Notation expression for the assembly language instruction Add A, B where A and B are memory addresses. B b [A] + [B] or B b A + B 4. [10 pts] What is the value of the Z flag after executing the following assembly language program: Clear R1 Move #4, R2 Sub R2, R1 ANS: _____0________ Extra Credit: What kind of numbers does the Sieve of Eratosthenes algorithm generate? Express your answer only as a single English word. [5 pts] ANS: Prime...
View Full Document
This note was uploaded on 04/02/2010 for the course EEL 3801 taught by Professor Froosh during the Spring '08 term at University of Central Florida.
- Spring '08