Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Current Trends In Database Technology Edbt 2006 Edbt 2006 Workshops Phd Datax Iidb Iiha Icsnw Qlqp Pim Parma And Reactivity On The Web Munich Germany March 2006 Revised Selected Papers Lncs 4254

Authors: Torsten Grust ,Hagen Hopfner ,Arantza Illarramendi ,Stefan Jablonski ,Marco Mesiti ,Sascha Muller ,Paula-Lavinia Patranjan ,Kai-Uwe Sattler ,Myra Spiliopoulou ,Jef Wijsen

2006th Edition

3540467882, 978-3540467885

More Books

Students also viewed these Databases questions

Question

Examples of backend routes

Answered: 1 week ago

Question

Discuss the six key functions of an HRIS system.

Answered: 1 week ago

Question

Project management skills and/or experience desirable

Answered: 1 week ago