/
GN_Cme, Compare null-terminated strings

GN_Cme, Compare null-terminated strings

Register parameters

RST 20H, DEFW $4209
IN:
     BHL = extended pointer to first string (B = 0, HL is local)
     DE = local pointer to second string

OUT:
     Fz = 0, strings are different
     Fz = 1, strings are equal

Registers changed after return:
     ..BCDEHL/IXIY same
     AF....../.... different 

Notes

  • Both strings should be null-terminated
  • Comparison is case-independent ('A' and 'a' are the same)

Related calls

GN_Rbe, read byte at extended address
GN_Wbe, write byte at extended address
OS_Bde, copy bytes to extended address
OS_Bhl, copy bytes from extended address

Related content

OS_Bde, Copy bytes to extended address
OS_Bde, Copy bytes to extended address
More like this
OS_Bhl, Copy bytes from extended address
OS_Bhl, Copy bytes from extended address
More like this
GN_Sop, Write local string to standard output
GN_Sop, Write local string to standard output
More like this
GN_Soe, Write string at extended address to standard output
GN_Soe, Write string at extended address 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
GN_Nln, Send newline (CR/LF) to standard output
GN_Nln, Send newline (CR/LF) to standard output
More like this

web analytics