Advertisement
yugorin

Raster kolorowy anim

Sep 20th, 2016
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. :BasicUpstart2(main)
  2.  
  3. .var brkFile = createFile("breakpoints.txt")
  4.  
  5. .macro break() {
  6.  .eval brkFile.writeln("break " + toHexString(*))
  7. }
  8.  
  9. .macro przeniesienie (pozycja) {
  10.  
  11.    lda #pozycja
  12. tu:   cmp $d012
  13.   bne tu
  14.  
  15.   lda #$ff
  16.   sta $d019
  17.  
  18.   ldx #$77
  19. d: dex
  20.   bne d
  21.  
  22.   ldx #$00
  23. c: ldy #$08
  24. a: lda colors,x
  25.   sta $d020
  26.   sta $d021
  27.   inx
  28.   dey
  29.   beq c
  30.  
  31.   txa
  32.   ldx #$06
  33. b: dex
  34.   bne b
  35.   tax
  36.  
  37.   cpx #$0e
  38.   bcc a
  39.  
  40.  
  41. }
  42.  
  43. main:
  44.  
  45.  
  46.   lda #$7f
  47.   sta $dc0d
  48.   and $d011
  49.   sta $d011
  50.  
  51.   sei
  52.   lda #<irq
  53.   sta $0314
  54.   lda #>irq
  55.   sta $0315
  56.   lda #$01
  57.   sta $d01a
  58.   cli
  59.   rts
  60.  
  61. irq:
  62.  
  63. .for(var i=0;i<$80;i++) :przeniesienie($40+i)
  64. .for(var i=0;i<$80;i++) :przeniesienie($c0-i)
  65.  
  66.   jmp $ea34
  67.  
  68.   *= $c100
  69. colors:
  70.   .byte $09,$02,$08,$0a,$0f,$07,$01,$07,$0f,$0a,$08,$02,$09,$00
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement