Advertisement
Guest User

Untitled

a guest
Nov 3rd, 2017
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //-- Init --
  2. //------elr-
  3.  
  4. //Initialize the C64 system.
  5. systemInit: {
  6.     cld
  7.     jsr nmiDisable
  8.     :memoryMap("ram", "io", "ram")
  9.     :setTimerInterrupt(TIMER_1A, OFF)
  10.     :setTimerInterrupt(TIMER_1B, OFF)
  11.     lda CIA_1.INTERRUPT_CTRL_REG
  12.     jsr zp.init
  13.     :stackFill($00)
  14. }
  15.  
  16. //Initialize our routines.
  17. routinesInit: {
  18.     :charBoxInit(windowChars)
  19.     lda #0
  20.     jsr song.init
  21.     jmp playground
  22.     windowChars:
  23.         .byte 0, 1, 2, 3, 4, 5, 6
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement