*/
Fast 32-bit binary to compact radix conversion - Keil Shell V1.0
Submitted By:
Graham Cole
Rating:
(Not rated) (
Rate It)
The function fast_binary_to_bcd() converts a 32-bit (long
unsigned int) to 11 digits of the specified radix (unsigned
char). The specified radix may be 8, 10 or 16. Two digits are
compacted into each byte. The eight least significant digits
are returned in R4…R7 so as to be compatible with Keil
function return value standards for an unsigned long int. The
three most significant digits are returned in R2 and R3.
fast_binary_to_radix() uses the currently selected register
bank, the Data Pointer (DPL and DPH) and general purpose
registers. No memory or stack is required. The function is
written in a Keil “shell” and may easily be
incorporated into a Keil C51 based project. However, all the
functionality is expressed in assembler and the function may
easily be converted to work with any assembly language
environment. A test harness is also provided.
NOTE: Some downloads must be obtained through publishers´s site.
Do you want to get your software listed on this site? Go to our
submissions area.
Screenshot
Details
Number of downloads:
1234
Comments (1)
Thanks
Posted by: liuqin on Tuesday, April 17, 2007
I think this is very useful for me ,Very Good
Add Your Rating