Advertisement
Guest User

Untitled

a guest
Nov 18th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. 03DF: 3E 40 ld a,$40 ; CTC base interrupt vector = 0x40
  2. 03E1: D3 20 out ($20),a
  3. 03E3: 3E 47 ld a,$47 ; CTC set int off, counter (/16, auto), falling, TC, res, ctrl
  4. 03E5: D3 21 out ($21),a ; apply to CTC channel 1
  5. 03E7: D3 22 out ($22),a ; apply to CTC channel 2
  6. 03E9: 3E 50 ld a,$50 ; set CTC channel 1 time constant to 0x50 (80)
  7. 03EB: D3 21 out ($21),a
  8. 03ED: 3E 05 ld a,$05 ; set CTC channel 2 time constant to 0x05 (5)
  9. 03EF: D3 22 out ($22),a
  10. 03F1: D3 C6 out ($C6),a ; ?????? what voodoo is this unknown I/O port
  11. 03F3: 3E A7 ld a,$A7 ; CTC channel 3 int on, timer mode, /256, falling, auto, TC, res, ctrl
  12. 03F5: D3 23 out ($23),a
  13. 03F7: 3E 9C ld a,$9C ; set CTC channel 3 time constant to 0x9c (156)
  14. 03F9: D3 23 out ($23),a
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement