Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Assignment: A- ISBN Checksum Generator Use Keil uvision software to write and simulate an ARM assembly program that generates a valid ISBN checksum for






imageimage

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 + 9 x d9+ ... +i x di + ... + 2 x d2) % 11 Calculate d1 = 11 - Result 2 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=5123487654 d10 d9 d8 d7d6 d5 d4 d3 d2 d1 Result = x10 + x9+x8+x7+x6+x5+x4+x3+x2 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 WRITE A PROGRAMIN ARM ASSEMBLY LANGUAGE PROGRAMMING 1) Given the following ARM assembly language code segment, determine the value of the condition codes when the breakpoint set at the branchinstruction is encountered. Will the branch be taken when the program continues execution?Assume initial values of 0x0000007E and Ox0000001C in r0 and 12 respectively. mov r3, r0, LSL r2 cmp r3, #4 bcc process 2) Given the following ARM assembly language code segment, determine the value of the condition codes when the breakpoint set at the branchinstruction is encountered. Will the branch be taken when the program continues execution?Assume initial values of 6 and -2 in r0 and r1 respectively. adds r0, r1, r0 bhi convert 3) Given the memory map shown, determine the contents ofr4, r6, r9, and r10 after the following ARM assembly languageinstructions have executed. Indicate all changes to thememory map after the program is complete. Assume thatr4, r8, r9, and r10 initially contain0x00008A04, 0x00008A0A, 0x12ABCDEF, and 0x0000000A respectively. Assume little endian byteordering. LDR r10. [r4, #8]! STRH r9, [16, #2]

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 Systems Design Implementation and Management

Authors: Carlos Coronel, Steven Morris

13th edition

1337627909, 978-1337627900

More Books

Students also viewed these Computer Network questions

Question

Can partitioned join be used for r r.A s? Explain your answer

Answered: 1 week ago

Question

Explain what an upsert does.

Answered: 1 week ago