login | register
Fri 18 of May, 2012 (00:17 UTC)

V6Z80P Documentation

Similar PagesHistorys5 slideshowPrint

KJT_compare_strings

Created by: Administrator, Last modification: Fri 31 of Jul, 2009 (22:38 UTC)
Name
kjt_compare_strings

Action
Compares two ASCII strings

Input Registers
DE = address of string 1
HL = address of string 2
B = maximum number characters to compare

Output Registers
Carry flag = set if strings are the same.

Trashes
A

Notes:
  • Both strings should be zero terminated.
  • Compare will fail if string lengths are different unless count is reached first.
  • Original HL/DE values are preserved.

Up
Kernal misc routines, Kernal

Search


Last modif pages