lask
02-09-2001, 03:39 PM
I'm working on an assembler homework assignment. The question entails reading in a string of numbers of length 6 and converting it into the 2's complement (binary) representation.
There's a hint: Find an arithmetic operation that would convert an ASCII representation of a number (ex. '3') to a binary representaton of the same number (ex. 0011).
I know that the breakdown of 3 in decimal is 3*10^0 and that the breakdown in binary is 1*2^0 + 1*2^1 so where do I go from here??
Any takers?
There's a hint: Find an arithmetic operation that would convert an ASCII representation of a number (ex. '3') to a binary representaton of the same number (ex. 0011).
I know that the breakdown of 3 in decimal is 3*10^0 and that the breakdown in binary is 1*2^0 + 1*2^1 so where do I go from here??
Any takers?