??? 09/27/06 07:13 Read: times |
#125135 - Why HEX? Responding to: ???'s previous message |
Are you sure you want the HEX value of this? If we assume the value 188 is in decimal, this equates to 6C in hex. I'm not sure this is what you want, I think you want to convert the digits 1,8,8 to the decimal equivalent and ,say, store it in the accumulator.
The basic algorithm is: get digit get rid of ascii offset (30h) multiply the result register by 10decimal add new digit to result register repeat for all digits. The result register will have the decimal equivalent of 188 in it. This is fundamental stuff - there's plenty on the web and most likely on this website regarding this. |
Topic | Author | Date |
Basic Q about Table Look ups | 01/01/70 00:00 | |
Basic table lookup | 01/01/70 00:00 | |
well, this should be an exercise for the student | 01/01/70 00:00 | |
More help please | 01/01/70 00:00 | |
Why HEX? | 01/01/70 00:00 | |
It's Place Value again!![]() | 01/01/70 00:00 | |
Confusion! | 01/01/70 00:00 |