Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Here is a short mashine code program to change the colors of the border and the background with quite a decent delay
- I used this with CBM prg STUDIO.
- ;program start
- *=$0828
- lda #0
- sta colorStorage
- @loop
- lda colorStorage
- sta $d020
- jsr waitSomeTime
- sta $d021
- jsr waitSomeTime
- inc colorStorage
- cmp #16
- bne @loop
- rts
- colorStorage
- byte 0,4 ;this is where the color value is stored
- waitSomeTime
- ldy #$7f ;127
- ldx #$ff ;255
- @loopCountdown
- dex
- cpx #0
- beq @doYs
- jmp @loopCountdown
- @doYs
- dey
- cpy #0
- beq back
- ldx #$ff ;255
- jmp @loopCountdown
- back
- rts
Advertisement
Add Comment
Please, Sign In to add comment