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.

23 line
753B

  1. ; c64test.inc - report a test result to the repository's headless test runner (ca65).
  2. ;
  3. ; `c64 test` watches for the first store to $D7FF and treats the value as the
  4. ; result: 0 = pass, anything else = failure code. VICE's debug cartridge uses the
  5. ; same register, so `x64sc -debugcart` also exits with this code. On real hardware
  6. ; $D7FF is an image of an unused SID register; the store is harmless.
  7. ;
  8. ; The runner captures the screen at that moment, so print what you want checked first.
  9. C64TEST_RESULT = $D7FF
  10. ; Report success. Clobbers A.
  11. .macro TEST_PASS
  12. lda #0
  13. sta C64TEST_RESULT
  14. .endmacro
  15. ; Report failure code (1-255). Clobbers A.
  16. .macro TEST_FAIL code
  17. lda #code
  18. sta C64TEST_RESULT
  19. .endmacro

Powered by TurnKey Linux.