Last active
August 29, 2015 14:01
-
-
Save tomaes/2bf1c1e3515444938cba to your computer and use it in GitHub Desktop.
54 wasteful bytes; looks kinda neat though. interactive. (c64)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; | |
; wallpaper scroll / flower tower (interactive) | |
; | |
* = 4096 | |
lda #6 | |
sta $d020 | |
start ; | |
; user input to init field color and width | |
; | |
lda $c5 | |
lsr | |
tay | |
sta $286 | |
;.. | |
loop | |
dey | |
;.. | |
lda $2 ; use the first free zp adress as and-3 buffer | |
adc #1 | |
and #3 | |
sta $2 | |
; | |
lda #107 ; chr$(107) as offset looks quite nice | |
adc $2 | |
;.. | |
jsr $ffd2 | |
;.. | |
sta $d418 ; audio | |
;.. | |
cpy #0 | |
bne loop | |
; | |
; border pieces per line, in their own color | |
; | |
lda #14 | |
sta $286 | |
lda #103 | |
jsr $ffd2 | |
lda #13 | |
jsr $ffd2 | |
; | |
lda #104 | |
jsr $ffd2 | |
; | |
bcc start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment