PlatformIO package of the Teensy core framework compatible with GCC 10 & C++20
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

41 lines
690B

  1. KBD = $C000 ;Read keydown
  2. KBDSTRB = $C010 ;Reset keybd
  3. SPKR = $C030 ;Toggle speaker
  4. ; TTL digital output pins on
  5. ; 16-pin DIP game connector
  6. SETAN0 = $C058
  7. CLRAN0 = $C059
  8. SETAN1 = $C05A
  9. CLRAN1 = $C05B
  10. SETAN2 = $C05C
  11. CLRAN2 = $C05D
  12. SETAN3 = $C05E
  13. CLRAN3 = $C05F
  14. PIN12ON = CLRAN3
  15. PIN12OFF= SETAN3
  16. PIN13ON = CLRAN2
  17. PIN13OFF= SETAN2
  18. PIN14ON = CLRAN1
  19. PIN14OFF= SETAN1
  20. PIN15ON = CLRAN0
  21. PIN15OFF= SETAN0
  22. ;Special for pin 5, except on //gs
  23. C040STROBE = $C040
  24. PIN5STROBE = C040STROBE
  25. SolidApple = $C062 ; read SW1 or SA
  26. OpenApple = $C061 ; read SW0 or OA
  27. VBL = $C019 ; vertical blanking
  28. WAIT = $FCA8 ; wait a little while
  29. CROUT = $FD8E ; print a CR
  30. PRBYTE = $FDDA ; print a hex byte