Write an assembly language program, Assembly Language

Assignment Help:

Your assignment for this project is to write an assembly language program that checks if the user's input is a valid ISBN number. A sample run of your program might look like:

   linux3% ./a.out

   Enter 10 digit ISBN: 3201541974

   This is a valid ISBN number.

   linux3%

   linux3% ./a.out

   Enter 10 digit ISBN: 0457773706

   This is NOT a valid ISBN number.

   linux3%

   linux3% ./a.out

   Enter 10 digit ISBN: 044101125X

   This is a valid ISBN number.

   linux3%

a trick to remove multiplication and division

    sum4 = 0 ;

    t4 = 0 ;

    for ( i = 0 ; i < 10 ; i++ ) {

 

       t4 += a[i] ;

       if (t4 >= 11) t4 -= 11 ;

 

       sum4 += t4 ;

       if (sum4 >= 11) sum4 -= 11 ;

 

    }

It is this version that you should implement in assembly language.


Related Discussions:- Write an assembly language program

Type of microprocessor , Type of Microprocessor : Microprocessors fal...

Type of Microprocessor : Microprocessors fall into 3 categories: Single Chip Microcomputers: - Contains RWM, ROM, microprocessor, I/O port, timer and clock. General pu

Program to evaluate equation, Write a program to evaluate the following exp...

Write a program to evaluate the following expression. You are to evaluate the following equation: num1 - (input + num2) - (num3 + num4) Input will be a hex number input by

The pin diagram of 8088-microprocessor, Pin diagram of 8088 : The pin ...

Pin diagram of 8088 : The pin diagram of 8088 is shown in given figure. Most of the 8088 pins and their functions are exactly similar to the corresponding pins of 8086.  Hence

Selecting array elements, implement the following c++ code in assembly lang...

implement the following c++ code in assembly language using the block-structured .IF and .while directives

Scanning, how o create the flow chart for scan ROW4, Column 1 and 3.tq

how o create the flow chart for scan ROW4, Column 1 and 3.tq

Segmentation, segmentation and overlapping in assemble language

segmentation and overlapping in assemble language

Signal descriptions of 8086-microprocessor, Signal descriptions of 8086 : ...

Signal descriptions of 8086 : described below are common for the maximum andminimum mode bothdata lines AD15 -AD0: These are the time multiplexed andmemory I/O address. Addre

Merge Sort, Write a program to merge two sorted arrays to create a third so...

Write a program to merge two sorted arrays to create a third sorted array containing all values from the two original arrays. Merge is a key component to the mergesort algorithm.

Program to find the largest number in an array, Write a MC68H12 assembly la...

Write a MC68H12 assembly language program to find the largest number in an array of ten 8-bit numbers. The array is stored in memory locations starting at address $1100. Use branch

Icwi-microprocessor, The definitions of the bits in ICWI are following: ...

The definitions of the bits in ICWI are following: Always set to the value 1. It directs the received byte to ICWI as oppose to OCW2 or OCW3. Which also utilize the even addr

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd