Question

. Declare the following array of words at address $1000: {-2185, 1468, 3017, -3662, 388, -2305 } Write a HCS12 assembly progr
0 0
Add a comment Improve this question Transcribed image text
Answer #1

DATA: section .data ;The stuff which follows is data

org $1000

array dc.w -2185,1468,3017,-3662,388,-2305

loopf ldx array ;check index i

cpx -7 ;if i is greater than n2, exit the loop … ; performs loop operations

blt next: ; if no less than -7 just increment array

emuls ;multiply if greater than -7

sty array ;m[$1000] Å Y

inc array

next: inc array

end

Add a comment
Know the answer?
Add Answer to:
. Declare the following array of words at address $1000: {-2185, 1468, 3017, -3662, 388, -2305...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT