*/
Want to see what people are talking about? See the latest forum posts.
*/

Fast 32-bit binary to compact BCD conversion - Keil Shell 2.0

*/

Fast 32-bit binary to compact BCD conversion - Keil Shell 2.0

Submitted By: Graham Cole
Rating: starstarstarstarstar (Rate It)

The function fast_binary_to_bcd() converts a 32-bit (long
unsigned int) to 10 digits of compact Binary Coded Decimal
(BCD). The eight least significant BCD digits are returned in
R4-R7 so as to be compatible with Keil function return value
standards for an unsigned long int. The two most significant
decimal digits are returned in R3. fast_binary_to_bcd() uses
the currently selected register bank, the Data Pointer (DPH
only) 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 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

No Image

Details

File Name:
34429.zip
Product homepage:
Order page:
Languages:
Unknown
Platforms:
Unknown
Release date:
6/1/2004
License:
Unknown
Size:
15 KB
Price/Fee (US$):
Unknown
Number of downloads:
3161

Comments (2)

very useful starstarstarstarstar   Posted on Wednesday, September 08, 2004

it can be adopted easily for 16-bit binaries.

Very good starstarstarstarstar   Posted by: Olja98 on Friday, September 17, 2004

Thank you, this is very useful.

Add Your Rating

(Not published)
star
starstar
starstarstar
starstarstarstar
starstarstarstarstar

corner
© 1996-2008 CommunityHeaven LLC. All rights reserved. Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
North American business development: Nicolai Wadstrom. Publisher: Lars Hagelin.