2020-06-18 07:40:20 -04:00
|
|
|
lblfind BSET
|
2020-04-22 21:19:12 -04:00
|
|
|
( Find the entry corresponding to word name where (HL) points
|
|
|
|
to in dictionary having its tip at DE and sets DE to point
|
|
|
|
to that entry. Z if found, NZ if not. )
|
2020-06-27 22:01:56 -04:00
|
|
|
HL PUSH,
|
2020-04-22 21:19:12 -04:00
|
|
|
( First, figure out string len )
|
2020-05-25 20:34:52 -04:00
|
|
|
A (HL) LDrr, A ORr,
|
2020-04-22 21:19:12 -04:00
|
|
|
( special case. zero len? we never find anything. )
|
2020-05-25 20:34:52 -04:00
|
|
|
IFNZ, ( fail-B296 )
|
|
|
|
( Let's do something weird: We'll hold HL by the *tail*.
|
|
|
|
Because of our dict structure and because we know our
|
|
|
|
lengths, it's easier to compare starting from the end. )
|
2020-06-27 22:01:56 -04:00
|
|
|
C A LDrr, B 0 LDri, ( C holds our length )
|
|
|
|
BC ADDHLd, HL INCd, ( HL points to after-last-char )
|
2020-05-25 20:34:52 -04:00
|
|
|
( cont . )
|