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.