Question: 7. Consider the following program a) Hand assemble to program to produce a list file b) After each instruction write the addressing mode if it

7. Consider the following program a) Hand assemble to program to produce a list file b) After each instruction write the addressing mode if it has one, or for REL addressing write the target addres. c) Fill in the following execution history. Stop after 10 instructions have completed. ;* FileName.asm -Author - Date ;* Description ORG DS . B $0800 Val: 1 $4000 #$01 ORG Start: clrb Idaa stab $0800 adda$0800 tab Jmp Top: $4003 PC B [$0800] Next Instruction $4000 clrb 8. The following memory dump contains a small 9S12 program in machine language 4000: 86 01 7A 0800 48 89 00 4008: 20 F8? ??? ? ?? ?? FFF8: ? ?? ?? ??- ??? 40 00 a) Disassemble the dump file into a simple assembly list file, like that in the class notes b) Write the addressing mode and effective address for those that have one. 7. Consider the following program a) Hand assemble to program to produce a list file b) After each instruction write the addressing mode if it has one, or for REL addressing write the target addres. c) Fill in the following execution history. Stop after 10 instructions have completed. ;* FileName.asm -Author - Date ;* Description ORG DS . B $0800 Val: 1 $4000 #$01 ORG Start: clrb Idaa stab $0800 adda$0800 tab Jmp Top: $4003 PC B [$0800] Next Instruction $4000 clrb 8. The following memory dump contains a small 9S12 program in machine language 4000: 86 01 7A 0800 48 89 00 4008: 20 F8? ??? ? ?? ?? FFF8: ? ?? ?? ??- ??? 40 00 a) Disassemble the dump file into a simple assembly list file, like that in the class notes b) Write the addressing mode and effective address for those that have one
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
