Question: ONLY IN ASSEMBLY LANGUAGE PLEASE IRVINE ... COPY ABLE CODE PLEASE Hexal, my new counting base, is base six; that is, there are six possible

ONLY IN ASSEMBLY LANGUAGE PLEASE IRVINE ... COPY ABLE CODE PLEASE

Hexal, my new counting base, is base six; that is, there are six possible values for a digit (0,1,2,3,4,5 just like counting on the fingers of your hand) as opposed to decimal (0..9) or hexadecimal which uses 0..F. Write an assembly language program with lots of comments (but don't try to assemble it - I'm looking for logic not syntax) that reads in a sequence of hexal digits one at a time and stores the accumulated value entered in a single DWORD. Input from the keyboard is read in a keystroke (a single character) at a time, examined for validity and, if valid, some magic is done and the new value thus far stored. Read each digit using READCHAR until an X (= 58h) is entered and accumulate the value of the valid input digits in a single DWORD. (HINT TO CHECK FOR VALID CHARACTERS: 0 is 30h, 1 is 31h, , 5 is 35h) For example if I enter 1, then 2, then 5, the DWORD will contain 00000001h (= 1) after the first character is entered, 00000008h [= (1*6) +2] after the second character, 00000035h [= (1*6*6) + (2*6) + 5] after the third, etc. Think positional notation with a base of 6. Only the digits 0 through 5 and the letter X are valid. Dont assume that all entries will be valid. You should skip over any invalid character entries.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!