Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
12/25/03 09:07
Read: times


 
#61378 - Data processing---248 -> "2", "4
A number which is small than 255 is stored in 20H.

How to display the number by four 7-digits LED display? I use the "scanning" method(4 digits display one by one), so if a number, say 248, have to be transform into "2", "4", "8".

I'm now using this method:
1. Divide the 248 by 100, obtained "2";
2. Multiple the "2" by 100, obtained "200";
3. 248-200=48;
4. 4810=4;
5. 4x10=40;
6. 48-40=8;

Are there any instructions/tricks to transform a number to digits? I program in assembler.

Stanley

List of 7 messages in thread
TopicAuthorDate
Data processing---248 -> "2", "4            01/01/70 00:00      
   RE: Data processing---248 -> \\            01/01/70 00:00      
      RE: Data processing---248 -> \\\\\\\\            01/01/70 00:00      
         RE: Data processing---248 ->            01/01/70 00:00      
            RE: Data processing---248 ->            01/01/70 00:00      
         RE: Data processing---248 -> \\\\\\\\            01/01/70 00:00      
            RE: Data processing---248 -> \\\\\\\\            01/01/70 00:00      

Back to Subject List