11 1 ; Simple_Operations.asm 2 3 ; Author: D. Haley 4 ; Student Number N/A 5 ; Date: 1 Mar 2022 6 ; 7; Purpose: To Gain

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

11 1 ; Simple_Operations.asm 2 3 ; Author: D. Haley 4 ; Student Number N/A 5 ; Date: 1 Mar 2022 6 ; 7; Purpose: To Gain

Post by answerhappygod »

11 1 Simple Operations Asm 2 3 Author D Haley 4 Student Number N A 5 Date 1 Mar 2022 6 7 Purpose To Gain 1
11 1 Simple Operations Asm 2 3 Author D Haley 4 Student Number N A 5 Date 1 Mar 2022 6 7 Purpose To Gain 1 (221.1 KiB) Viewed 70 times
11 1 ; Simple_Operations.asm 2 3 ; Author: D. Haley 4 ; Student Number N/A 5 ; Date: 1 Mar 2022 6 ; 7; Purpose: To Gain Experience with Assembly Language instructions 8; 9; 10 ; Note: This program is purposely not documented, except where noted 12 13 i Program Constants 14 STACK equ $2000 15 FIRSTNUM equ $ 64 16 SECONDNUM equ 64 17 THIRDNUM equ *01010101 18 19 org $1000 20 MyArray db $08, $44, $18, SEC, $CF, $3B ; Unsigned Data 21 Result ds 2 22 23 org $2000 24 Start lds #STACK 25 26 ldaa #SECONDNUM 27 ldab #FIRSTNUM 28 addb MyArray+2 29 staa Result 30 stab Result+1 31 ldaa MyArray+4 32 ldab Result 33 decb 34 ldaa #THIRDNUM 35 coma 36 std Result 37 swi 38 end

The following questions refer to the above code listing. Example Questions & Answers (to illustrate the Format for your answers - e.g. use of "$" and "%" signs: After the execution of line 26, what is the 8-bit HEX value in Accumulator A? Answer: $40 After the execution of line 26, what is the 8-bit BINARY value in Accumulator A? Answer: %01000000 After the execution of line 26, what is the 8-bit HEX value in Accumulator A? A Question 2 (1 point) After the execution of line 27, what is the 8-bit HEX value in Accumulator B? A/ Question 3 (1 point) After the execution of line 28, what is the 8-bit HEX value in Accumulator B? A Question 4 (1 point) What 16-bit HEX address is associated with "Result+1" in line 302 A

Question 5 (1 point) After the execution of line 31, what is the 8-bit HEX value in Accumulator A? A Question 6 (1 point) After the execution of line 32, what is the 8-bit HEX value in Accumulator B? A Question 7 (1 point) After the execution of line 35, what is the 8-bit BINARY value in Accumulator A? A Question 8 (1 point) After the execution of line 36, what is the 16-bit HEX value in D? A Question 9 (1 point) What is the three letter abbreviation for the Addressing mode of the instruction used in line 35?

Question 10 (1 point) What is the opcode (object code) for the instruction in line 37? A
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply