Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Instructions: It should be an Assembly program, written entirely from scratch by you, satisfying the requirements specified below. This assignment is individually work, so every

image text in transcribedimage text in transcribed

Instructions: It should be an Assembly program, written entirely from scratch by you, satisfying the requirements specified below. This assignment is individually work, so every student has to submit his/her own solution and be ready for discussion. It is very important that you write easily readable, well-designed, and fully commented code [You must organize your code using procedures]. No late submission will be accepted. Assignment: A - ISBN Checksum Generator Use Keil uvision software to write and simulate an ARM assembly program that generates a valid ISBN checksum for a given ISBN. B - ISBN Checksum Validator Use Keil uvision software to write and simulate an ARM assembly program that checks the validity of a given ISBN by verifying the checksum Helping Information An ISBN consists of nine digits plus a validation digit. The digits are numbered from right to left as d1, d2 ... d10, with d1 being the validation digit. You can define the ISBN number in a 10-byte array in the memory. Each digit is stored in a byte. To check whether the ISBN is valid or not, the following calculations are performed: Result = (10 x d10 + 9x d9 + ... + ix di + ... + 2 x d2) % 11 Calculate d1 = 11 - Result 1 If the calculated d1 equal to the d1 in the input ISBN then it is valid If d1 = 10, it is written 'X' For example, given the following ISBN: ISBN = 5123487654 ISBN = 5 1 2 3 4 8 7 6 5 4 d10 d9 d8 d7d6 d5 d4 d3 d2 di Result = x 10 + x 9 + x 8 + x 7 + x 6+ x 5 + x 4 + x3 + x 2 mod 11 = 216 mod 11 = 7 d1 = 11 - Result = 11-7 = 4 , then the input ISBN is valid, since the calculated d1 is equal to the d1 in the input ISBN. Some ISBN examples: The ISBN 5123487654 is valid The ISBN 5123487658 is not valid The ISBN 7465159237 is valid The ISBN 7465159232 is not valid The ISBN 123456789X is valid The ISBN 1234567891 is not valid Instructions: It should be an Assembly program, written entirely from scratch by you, satisfying the requirements specified below. This assignment is individually work, so every student has to submit his/her own solution and be ready for discussion. It is very important that you write easily readable, well-designed, and fully commented code [You must organize your code using procedures]. No late submission will be accepted. Assignment: A - ISBN Checksum Generator Use Keil uvision software to write and simulate an ARM assembly program that generates a valid ISBN checksum for a given ISBN. B - ISBN Checksum Validator Use Keil uvision software to write and simulate an ARM assembly program that checks the validity of a given ISBN by verifying the checksum Helping Information An ISBN consists of nine digits plus a validation digit. The digits are numbered from right to left as d1, d2 ... d10, with d1 being the validation digit. You can define the ISBN number in a 10-byte array in the memory. Each digit is stored in a byte. To check whether the ISBN is valid or not, the following calculations are performed: Result = (10 x d10 + 9x d9 + ... + ix di + ... + 2 x d2) % 11 Calculate d1 = 11 - Result 1 If the calculated d1 equal to the d1 in the input ISBN then it is valid If d1 = 10, it is written 'X' For example, given the following ISBN: ISBN = 5123487654 ISBN = 5 1 2 3 4 8 7 6 5 4 d10 d9 d8 d7d6 d5 d4 d3 d2 di Result = x 10 + x 9 + x 8 + x 7 + x 6+ x 5 + x 4 + x3 + x 2 mod 11 = 216 mod 11 = 7 d1 = 11 - Result = 11-7 = 4 , then the input ISBN is valid, since the calculated d1 is equal to the d1 in the input ISBN. Some ISBN examples: The ISBN 5123487654 is valid The ISBN 5123487658 is not valid The ISBN 7465159237 is valid The ISBN 7465159232 is not valid The ISBN 123456789X is valid The ISBN 1234567891 is not valid

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

Database Internals A Deep Dive Into How Distributed Data Systems Work

Authors: Alex Petrov

1st Edition

1492040347, 978-1492040347

More Books

Students also viewed these Databases questions

Question

4. Who would lead the group?

Answered: 1 week ago

Question

Where those not participating, encouraged to participate?

Answered: 1 week ago