toa.h File Reference


Detailed Description

API fo using the assembler conversion routines.

Software License
See the MBCSL for details.
Author:
Sven Schlender (kontakt at mobacon dot de)
Date:
2011-08-15


Functions

BYTE * utoa (auto WORD Value, auto BYTE *pBuffer)
 Transfer a unsigned 16 bit value into corresponding string without trailing zeros.
BYTE * ubtoa (auto BYTE Value, auto BYTE *pBuffer)
 Convert the given value into a ASCII expression without trailing zeros.
BYTE Htoc_low (auto BYTE Value)
 Convert the low nibble of a given character to its ASCII hexadecimal representation.
BYTE Htoc_high (auto BYTE Value)
 Convert the high nibble of a given character to its ASCII hexadecimal representation.
BYTE htoc_high (auto BYTE Value)
 Convert the high nibble of a given character to its ASCII hexadecimal representation.
BYTE htoc_low (auto BYTE Value)
 Convert the low nibble of a given character to its ASCII hexadecimal representation.
BYTE * htoa (auto WORD Value, auto BYTE *pBuffer)
 Convert the given 16 bit value into a hexadecimal ASCII expression without trailing zeros.


Function Documentation

BYTE* htoa ( auto WORD  Value,
auto BYTE *  pBuffer 
)

Convert the given 16 bit value into a hexadecimal ASCII expression without trailing zeros.

Parameters:
Value The value to convert.
pBuffer Buffer space for conversion (must be at least 5 bytes).
Returns:
A pointer to the end of the conversion string (for quick concatenations).

BYTE htoc_high ( auto BYTE  Value  ) 

Convert the high nibble of a given character to its ASCII hexadecimal representation.

Parameters:
Value The value to convert.
Returns:
ASCII character (0-9 and a-f) of the high nibble.

BYTE Htoc_high ( auto BYTE  Value  ) 

Convert the high nibble of a given character to its ASCII hexadecimal representation.

Parameters:
Value The value to convert.
Returns:
ASCII character (0-9 and A-F) of the high nibble.

BYTE htoc_low ( auto BYTE  Value  ) 

Convert the low nibble of a given character to its ASCII hexadecimal representation.

Parameters:
Value The value to convert.
Returns:
ASCII character (0-9 and a-f) of the low nibble.

BYTE Htoc_low ( auto BYTE  Value  ) 

Convert the low nibble of a given character to its ASCII hexadecimal representation.

Parameters:
Value The value to convert.
Returns:
ASCII character (0-9 and A-F) of the low nibble.

BYTE* ubtoa ( auto BYTE  Value,
auto BYTE *  pBuffer 
)

Convert the given value into a ASCII expression without trailing zeros.

Parameters:
Value The value to convert.
pBuffer A buffer to copy the converted values. The buffer must be big enough (3 characters + null termination).
Returns:
A pointer to the end of the conversion string (for quick concatenations).

BYTE* utoa ( auto WORD  Value,
auto BYTE *  pBuffer 
)

Transfer a unsigned 16 bit value into corresponding string without trailing zeros.

Parameters:
Value Value to convert.
pBuffer Buffer space for conversion (must be at least 6 bytes).
Returns:
A pointer to the end of the conversion string (for quick concatenations).


Generated on Fri Mar 29 10:34:28 2013 for Netzer by  doxygen 1.5.5