CH2 (2) - Rick Wagoner IET645 Spring 2006 Chapter 2...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Rick Wagoner IET645 – Spring 2006 Chapter 2 Exercises E2-3. Write assembler directives to reserve 100 bytes from $D000 to $D063 and initialize them to 0. ORG $D000 ; Define initial location for memory reservation MEM BSZ 100 ; Reserve 100 blocks of memory and initialize to 0 E2-6. Write a program to compute the sum of $DA03 and $934A and save the result at $00 and $01. ORG $C000 ; Initialize location to begin storing instructions LDD #$DA03 ; Load initial value in double accumulator D ADDA #$934A ; Add second value to double accumulator D STD $00 ; Store double accumulator D to $00 and $01 END E2-11. Find the values of accumulator A and B after the execution of the MUL instruction if they originally contain the values a. $33 and $80, respectively $33 x $80 $1980 so accumulator A = $19 and accumulator B = $80. $7C x $55 $292C so accumulator A = $29 and accumulator B = $2C E2-12. Which of the conditional branch instructions in the following list will cause the branch to
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 09/12/2011 for the course EEL 4742 taught by Professor Weeks during the Spring '11 term at University of Central Florida.

Page1 / 2

CH2 (2) - Rick Wagoner IET645 Spring 2006 Chapter 2...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online