Two's complement to ASCII

Madluke

Weaksauce
Joined
Mar 10, 2003
Messages
127
I have to translate two's complement number into ASCII code for printing on a LCD screen.

This is in making a calculator with a FPGA system, I don't know how I can do it. It must be a simple way of doing it ???

If somebody can help me, this will be very nice
 
Convert the twos complement to straight binary- if you're converting to ascii it'll always be positive.

Convert binary to decimal.

Lookup appropiate ascii code.

Most computer or digital electronics texts should explain the first two points. Vast wealth of information on the net for it too. Go forth and learn :)
 
thanks, that the way I was thinking to do it, but I was wondering if that have a way to do it more directly.


This is a little more complicated that what I was thinking starting this project.....
 
Back
Top