Question

The following a line in an s-record of a small program: S10D4000B6C03CC60318067AC03DA9 At what address in memory will the pro
0 0
Add a comment Improve this question Transcribed image text
Answer #1

S-Record format is

Record Type Byte Count Address Data Checksum
S1 0D 4000 B6C03CC60318067AC03D A9

1. The program is reside in the memory at: 4000

2. Method for checksum calculation

  1. Add: Add each byte 0x0D + 0x40+ 0x00 + 0xB6+ 0xC0 + 0x3C + 0xC6 + 0x03 +0x18+0x06+ox7A+oxC0+ox3D+oxA9= 0x506 total.
  2. Mask: Keep the least significant byte of the total = 0x06.
  3. Complement: Compute ones' complement of least significant byte = 0x1

Hence the correct Checksum value is :0x1.

To write assembly code ,source code is required which is not precent in tne question.

thanks.

Add a comment
Know the answer?
Add Answer to:
The following a line in an s-record of a small program: S10D4000B6C03CC60318067AC03DA9 At what address in...
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