/
GN_Ghn, Convert hexadecimal string to 32 bits integer

GN_Ghn, Convert hexadecimal string to 32 bits integer

Register parameters

RST 20H, DEFW $8409
IN :  HL = local source pointer
      DE = 2, return integer in DEBC
      DE > 255, return integer at (DE) and (DE)=LSB, (DE+3)=MSB

OUT:  Fc = 0, success 
      Fc = 1, A = RC_Bdn (bad hexadecimal string)
              A = RC_Fail (bad destination)
              A = RC_Hnd (bad handle for stream IX or filter IX)

Registers changed after return:
      A.BCDEHL/IXIY same
      .F....../.... different

Notes

  • GHN stands for Get Hex Number
  • API call implemented in OZ 5.0

Related calls

GN_D16, 16bit unsigned division 
GN_M16, 16bit unsigned multiplication 
GN_D24, 24bit unsigned division 
GN_M24, 24bit unsigned multiplication 
GN_Gdn, convert an ASCII string to a binary number
GN_Pdn, write number as decimal ASCII string
GN_Phn, convert 32 bits integer to hexadecimal string 

Related content

GN_Phn, Convert 32 bits integer to hexadecimal ascii string
GN_Phn, Convert 32 bits integer to hexadecimal ascii string
More like this
OS_Pout, Write embedded string at (PC) to standard output.
OS_Pout, Write embedded string at (PC) to standard output.
More like this
OS_Hout, write a hexadecimal byte to standard output
OS_Hout, write a hexadecimal byte to standard output
More like this
GN_Nln, Send newline (CR/LF) to standard output
GN_Nln, Send newline (CR/LF) to standard output
More like this
GN_Sop, Write local string to standard output
GN_Sop, Write local string to standard output
More like this
OS_Nln, send new line (CR/LF) to standard output
OS_Nln, send new line (CR/LF) to standard output
More like this

web analytics