Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

ROMStart EQU$4000 BAMStart EQU $1000 EQU 7 ORG BAMStart DS.B 1 VALUE: ORG Entry: Startup: CLR VALUE LDS #$4000 LDAB #N LDX #NUMS 4 MORE:

image text in transcribed

ROMStart EQU$4000 BAMStart EQU $1000 EQU 7 ORG BAMStart DS.B 1 VALUE: ORG Entry: Startup: CLR VALUE LDS #$4000 LDAB #N LDX #NUMS 4 MORE: 6 7 LDAA 1,X+ LSLA BCC L INC VALUE 9 DECB BNE MORE HERE: BRA HERE ORG $3000 ; define some numbers NUMS: DC.B 1, 2, 4, -1, 5, 6, -7 Answer the following questions 1. How many bytes are needed to store this program in Flash & RAM? 2. What are the addressing modes used in lines 1, 2, 6, and 12? 3. What is the final value stored on VALUE and register X? 4. In one sentence, what does this program do? ROMStart EQU$4000 BAMStart EQU $1000 EQU 7 ORG BAMStart DS.B 1 VALUE: ORG Entry: Startup: CLR VALUE LDS #$4000 LDAB #N LDX #NUMS 4 MORE: 6 7 LDAA 1,X+ LSLA BCC L INC VALUE 9 DECB BNE MORE HERE: BRA HERE ORG $3000 ; define some numbers NUMS: DC.B 1, 2, 4, -1, 5, 6, -7 Answer the following questions 1. How many bytes are needed to store this program in Flash & RAM? 2. What are the addressing modes used in lines 1, 2, 6, and 12? 3. What is the final value stored on VALUE and register X? 4. In one sentence, what does this program do

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

PC Magazine Guide To Client Server Databases

Authors: Joe Salemi

1st Edition

156276070X, 978-1562760700

More Books

Students also viewed these Databases questions

Question

Stages of a Relationship?

Answered: 1 week ago