Hi guys. I'm working on a 16-bit real-mode library with 80186 instruction set and i wanted to know if you guys have any suggestions or ideas for the Conversion unit that is included in the library or not?

Below is the list of the procedures and functions that are already coded:

  ; IntToStr PROC (16bit unsigned int to null-terminated string)
  ; SIntToStr PROC (16bit signed int to null-terminated string)
  ; IntToBinary PROC (16bit int to binary excluding the leading zeros)
  ; IntToBinaryExact PROC (16bit int to binary including the leading zeros)
  ; IntToHex PROC (16bit int to hex excluding the leading zeros)
  ; IntToHexExact PROC (16bit int to hex including the leading zeros)
  ; IntToOctal PROC (16bit int to octal excluding the leading zeros)
  ; IntToOctalExact PROC (16bit int to octal including the leading zeros)
  ; ByteToHex PROC (8bit to hex including the leading zeros)
  ; BinaryToInt PROC (Null-terminated string in binary format to 16bit int)
  ; StrToInt PROC (Unsigned null-terminated string to 16bit int)
  ; SStrToInt PROC (Signed null-terminated string to 16bit int)
  ; OctalToInt PROC (Octal null-terminated string to 16bit int)
  ; HexToInt PROC (Hexadecimal null-terminated string to 16bit int)
  ; NullToDOSStr PROC (Null-terminated string to DOS string)
  ; DOSToNullStr PROC (DOS string to Null-terminated string)
  ; DWORDToStr PROC (Unsigned 32bit DWORD value to null-terminated string)
  ; SDWORDToStr PROC (Signed 32bit DWORD value to null-terminated string)
  ; StrToDWORD PROC (Unsigned Null-terminated string to 32bit DWORD)
  ; SStrToDWORD PROC (Signed Null-terminated string to 32bit DWORD)
  ; DWORDToHex PROC (32bit DWORD value to hexadecimal excluding the leading zeros)
  ; DWORDToHexExact PROC (32bit DWORD value to hexadecimal including the leading zeros)
  ; HexToDWORD PROC (Hexadecimal null-terminated string to 32bit DWORD)
  ; DWORDToOctalExact PROC (32bit DWORD value to octal including the leading zeros)
  ; DWORDToOctal PROC (32bit DWORD value to octal excluding the leading zeros)
  ; BinaryToDWORD PROC (Null-terminated string in binary format to 32bit DWORD value)
  ; DWORDToBinaryExact PROC (32bit DWORD value to binary including the leading zeros)
  ; DWORDToBinary PROC (32bit DWORD value to binary excluding the leading zeros)

I'd be glad to hear suggestions perhaps for implementing new procedures and/or functions in this conversion unit. The library will be released to the public once i finish coding the memory management procedures and functions and optimizing the code better for speed and size.

P.S: Octal, binary and hex formats are stored in null-terminated strings.
Posted on 2006-08-30 08:17:37 by XCHG