Question: 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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!