Answered step by step
Verified Expert Solution
Question
1 Approved Answer
ROMStart EQU $2000 : absolute address to place my code Variable/Data Section ORG RAMStart ; loc $1000 ; Insert here your data definitions here sum
ROMStart EQU $2000 : absolute address to place my code Variable/Data Section ORG RAMStart ; loc $1000 ; Insert here your data definitions here sum do. b 0 Sum byte stored here INCLUDE INCLUDE 'utilities, inc' LCD. ino' Code Section ORG ROMStart ; loc $2000 Entry: _Startup: : remap the RAM & EEPROM here. See EB386.pdf ifdef _HCS12_SERIALMON i set registers at $0000 CLR $11 ; INITRG: $0 ; set ram to end at $3FFF LDAB #$39 STAB $10 ; INITRM- $39 ; set eeprom to end at $0FFF LDAA #$ 9 STAA $12 ; INITEE$9 JSR PLL_init : initialize PLL endif Insert your code here lds #ROMStart ; load stack pointer ldaa #0 : Initializing CPU register A with O ldab #0 ; Initializing CPU register B with 0 ldaa #$25 ; Load $25 to reg A adda #$ 34 ; Add $34 to A adda #$11 : Add $11 to A adda #$12 : Add $12 to A adda #$10 : Add $10 to A staa sum :Store total in 'sum' M[$1000] here: jmp here :Stay here forever to end program -End Program Lab#1 ******* ************************************************* Interrupt Vectors ########### ********** ORG Vreset DC. W Entry ; Reset Vector What was the original content of memory location sum after downloading but before executing the complete program? Why does it have this value ? What is the final content of memory location sum? ROMStart EQU $2000 : absolute address to place my code Variable/Data Section ORG RAMStart ; loc $1000 ; Insert here your data definitions here sum do. b 0 Sum byte stored here INCLUDE INCLUDE 'utilities, inc' LCD. ino' Code Section ORG ROMStart ; loc $2000 Entry: _Startup: : remap the RAM & EEPROM here. See EB386.pdf ifdef _HCS12_SERIALMON i set registers at $0000 CLR $11 ; INITRG: $0 ; set ram to end at $3FFF LDAB #$39 STAB $10 ; INITRM- $39 ; set eeprom to end at $0FFF LDAA #$ 9 STAA $12 ; INITEE$9 JSR PLL_init : initialize PLL endif Insert your code here lds #ROMStart ; load stack pointer ldaa #0 : Initializing CPU register A with O ldab #0 ; Initializing CPU register B with 0 ldaa #$25 ; Load $25 to reg A adda #$ 34 ; Add $34 to A adda #$11 : Add $11 to A adda #$12 : Add $12 to A adda #$10 : Add $10 to A staa sum :Store total in 'sum' M[$1000] here: jmp here :Stay here forever to end program -End Program Lab#1 ******* ************************************************* Interrupt Vectors ########### ********** ORG Vreset DC. W Entry ; Reset Vector What was the original content of memory location sum after downloading but before executing the complete program? Why does it have this value ? What is the final content of memory location sum
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started