Mirror of CollapseOS
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
480B

  1. PC ORG @ 4 + ! ( find )
  2. ( Find the entry corresponding to word name where (HL) points
  3. to in dictionary having its tip at DE and sets DE to point
  4. to that entry. Z if found, NZ if not. )
  5. BC PUSHqq,
  6. HL PUSHqq,
  7. ( First, figure out string len )
  8. BC 0 LDddnn,
  9. A XORr,
  10. CPIR,
  11. ( C has our length, negative, -1 )
  12. A C LDrr,
  13. NEG,
  14. A DECr,
  15. ( special case. zero len? we never find anything. )
  16. JRZ, L1 FWR ( fail-B296 ) ( cont. )