******************************************************************************** *2345678911234567891123456789112345678911234567891123456789112345678911234567898 *Program Name: *Program Description:Answers to programming exercises on Worksheet 1 - for Lab 3 ******************************************************************************** ORG $2000 ;start the program at address $2000 ldaa #$63 ;1.load a with $63 staa $1000 ;2.store a at $1000 ;a = $1000 = ldab $1000 ;3.load b with value stored at address $1000 ;b = *4.compute $a9 + $41 *store result at address $3000 ldaa #$a9 ;start with $A9 adda #$41 ;add $41 staa $3000 ;$3000 = *5.Calculate $423e - $2a75 ldd #$423e ;first number subd #$2a75 ;subtract the second number. d = aba ;6 Add b to a, Store result in a. a = movb $3000 $3001 ;7.Copy the value at $3000 to $3001 ;$3000 = $3001 = *8 Add $0a to what is stored at $3001 *Store the result at address $3002 ldaa #$0A ;start with $0A adda $3001 ;add value at $3001 staa $3002 ;$3002 = *9. Add values stored at $3001 and $3002 *Store the result at address $3003 ldaa $3001 ;start with value at $3001 adda $3002 ;add value at $3002 staa $3003 ;$3003 = *10. Compute $30 - $0a + $0b *Store result at $3004 ldaa #$30 ;start with $30 suba #$0a ;subract $0a adda #$0b ;add 0b staa $3004 ;$3004 = SWI