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 310^0 and that the breakdown in binary is 12^0 + 1*2^1 so where do I go from here??