Mirror of CollapseOS
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

33 linhas
449B

  1. ; Is (HL) a double-quoted string? If yes, spit what's inside and place (HL)
  2. ; at char after the closing quote.
  3. ; Set Z if there was a string, unset otherwise.
  4. spitQuoted:
  5. ld a, (hl)
  6. cp '"'
  7. ret nz
  8. inc hl
  9. .loop:
  10. ld a, (hl)
  11. inc hl
  12. cp '"'
  13. ret z
  14. or a
  15. ret z
  16. call stdioPutC
  17. jr .loop
  18. ; Same as spitQuoted, but without the spitting
  19. skipQuoted:
  20. ld a, (hl)
  21. cp '"'
  22. ret nz
  23. inc hl
  24. .loop:
  25. ld a, (hl)
  26. inc hl
  27. cp '"'
  28. ret z
  29. or a
  30. ret z
  31. jr .loop