Advertisement
Guest User

Untitled

a guest
Jul 8th, 2018
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ;---------------------------------------
  2. ;        ^o^
  3. ;---------------------------------------
  4.  
  5.          *= $1000
  6.          sei
  7.          ldx #$00
  8. clr      txa
  9.          sta $0400,x
  10.          sta $0500,x
  11.          sta $0600,x
  12.          sta $0700,x
  13.          sta $0800,x
  14.          sta $0900,x
  15.          sta $0a00,x
  16.          sta $0b00,x
  17.          lda #$0f
  18.          sta $d800,x
  19.          sta $d900,x
  20.          sta $da00,x
  21.          sta $db00,x
  22.          dex
  23.          sta $db00,x
  24.          dex
  25.          bne clr
  26.          lda #$00
  27.          sta $d020
  28.          sta $d021
  29.          lda #$35
  30.          sta $01
  31.          lda #$01
  32.          sta $d01a
  33.          lda #$00
  34.          sta $d012
  35.          lda #$1b
  36.          sta $d011
  37.          lda #$7f
  38.          sta $dc0d
  39.          sta $dd0d
  40.          lda $dc0d
  41.          lda $dd0d
  42.          lda #<irq
  43.          sta $fffe
  44.          lda #>irq
  45.          sta $ffff
  46.          lda #<break
  47.          sta $fffa
  48.          lda #>break
  49.          sta $fffb
  50.          lda #$00
  51.          sta $fc
  52.          lda #$08
  53.          sta $fd
  54.          lda #$01
  55.          sta $fe
  56.          lda #$04
  57.          sta $ff
  58.          lda scroll
  59.          sta $d016
  60.          lda #$17
  61.          sta $d018
  62.          cli
  63.          jmp *
  64.  
  65. break    jmp $9000
  66.  
  67. irq      pha
  68.          txa
  69.          pha
  70.          tya
  71.          pha
  72.          lsr $d019
  73.  
  74. ;         inc $d020
  75.  
  76.          ldy #$00
  77. l1       lda ($fe),y
  78.          sta ($fc),y
  79.          iny
  80.          cpy #$7d
  81.          bne l1
  82.  
  83.          lda $fc
  84.          clc
  85.          adc #$7d
  86.          sta $fc
  87.          lda $fd
  88.          adc #$00
  89.          sta $fd
  90.          lda $fe
  91.          clc
  92.          adc #$7d
  93.          sta $fe
  94.          lda $ff
  95.          adc #$00
  96.          sta $ff
  97.  
  98.          ldx scroll
  99.          dex
  100.          bpl l3
  101.  
  102.          inc chr
  103.  
  104.          lda flag
  105.          eor #$01
  106.          sta flag
  107.          bne l2
  108.  
  109.          lda chr
  110.          sta $07e7
  111.          lda #$00
  112.          sta $fc
  113.          lda #$08
  114.          sta $fd
  115.          lda #$01
  116.          sta $fe
  117.          lda #$04
  118.          sta $ff
  119.          lda #$16
  120.          sta $d018
  121.          bne l4
  122. l2       lda chr
  123.          sta $0be7
  124.          lda #$00
  125.          sta $fc
  126.          lda #$04
  127.          sta $fd
  128.          lda #$01
  129.          sta $fe
  130.          lda #$08
  131.          sta $ff
  132.          lda #$26
  133.          sta $d018
  134.  
  135. l4       ldx #$07
  136. l3       stx scroll
  137.          stx $d016
  138.  
  139. ;         dec $d020
  140.  
  141.          pla
  142.          tay
  143.          pla
  144.          tax
  145.          pla
  146.          rti
  147.  
  148. scroll   .byte 0
  149. flag     .byte 0
  150. chr      .byte 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement