Inter-Corporate Computer & Network Services, inc.

ICELIB0.NLM   →   ICE_Convert32bitIPtoRegs()

ICE_Convert32bitIPtoRegs

Description:
Splits a 32-bit IP address (in network order) into the four common 32-bit CPU registers for easy handling in printf() or other similar functions.
 
Syntax for C:
void *ICE_Convert32bitIPtoRegs (
  unsigned int 32bitIP,
  unsigned int flags
);
 
Syntax for Assembly:
Call ICE_Convert32bitIPtoRegs C, [32bitIP], [flags]
 
Parameters:
32bitIP
(IN) 32-bit IP address (in network order)
 
flags
(IN) All undocumented bit flags are considered reserved for future use, and should remain cleared (0) to ensure upward compatibility with newer versions of ICELIB0.NLM.  Currently supported flags are as follows:

No flags present.
 

Returns:
EAX = First octet
EBX = Second octet
ECX = Third octet
EDX = Fourth octet
 
Remarks:
The printf() function does not have the ability to display 8-bit values, and this function provides a simple work-around so that each octet may by displayed as a 32-bit value instead.
 
Resource files:
icelib0.imp
 
Solutions Services Support Products Home Login Company Contact
Copyright © 1992-2024 Inter-Corporate Computer & Network Services, Inc.  All rights reserved.  All trademarks are the property of their respective owners.  The information provided on this internet site does not constitute a contract with any person or entity unless otherwise specified.  Although reasonable efforts are made to present accurate information, we do not guarantee it.  Information may change without prior notice.