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
521B

  1. PC ORG @ 0x22 + ! ( litWord )
  2. ( Like numberWord, but instead of being followed by a 2 bytes
  3. number, it's followed by a null-terminated string. When
  4. called, puts the string's address on PS )
  5. IY PUSHqq, HL POPqq, ( <-- IP )
  6. HL PUSHqq,
  7. ( skip to null char )
  8. A XORr, ( look for null )
  9. B A LDrr,
  10. C A LDrr,
  11. CPIR,
  12. ( CPIR advances HL regardless of comparison, so goes one
  13. char after NULL. This is good, because that's what we
  14. want... )
  15. HL PUSHqq, IY POPqq, ( --> IP )
  16. JPNEXT,