Last active
August 19, 2020 16:57
-
-
Save badvision/fdaae1fa694085ddcc93386a66f58c9a to your computer and use it in GitHub Desktop.
This file contains 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
*= $6000; | |
!cpu 65c02; | |
PLOT = $F800 | |
CLEARSCR= $F832 | |
SETCOLOR= $F864 | |
LORES = $C056 | |
GFX = $C050 | |
CURRENT = $0 | |
lda LORES | |
sta GFX | |
jsr CLEARSCR | |
START lda #0 | |
sta XPOS | |
lda #$0F | |
sta YPOS | |
MAIN lda COLOR | |
jsr SETCOLOR | |
jsr DRAW | |
dec COLOR | |
bne START | |
lda #$0F | |
sta COLOR | |
bne START | |
DRAW ldy #$00 | |
LOOP1 lda DATA,Y | |
sty CURRENT | |
ldx #8 | |
LOOP2 asl | |
bcc NOPLOT | |
pha | |
ldy XPOS | |
lda YPOS | |
jsr PLOT | |
pla | |
NOPLOT inc XPOS | |
dex | |
bne LOOP2 | |
ldy CURRENT | |
lda XPOS | |
cmp #$28 | |
bcc NOINC | |
lda #$00 | |
sta XPOS | |
inc YPOS | |
NOINC iny | |
cpy #$1E | |
bne LOOP1 | |
rts | |
COLOR !byte $03 | |
!macro Bitmap b, b2 { | |
!by (b >> 24) & 255 | |
!by (b >> 16) & 255 | |
!by (b >> 8) & 255 | |
!by b & 255 | |
!by b2 | |
} | |
DATA | |
+Bitmap %.##........................##..., %.....#.. | |
+Bitmap %..#.#..#####..###..######.#...##, %.######. | |
+Bitmap %..#.#.#.#.#.#.#...#.#.#...#..#.#, %.#...#.. | |
+Bitmap %..##..#.#.#.#.###.#.#.###.##.###, %.###.#.. | |
+Bitmap %..#.#.#.#.#.#...#.#.#...#.#..#.., %...#.#.. | |
+Bitmap %..#.#..##.#.#.###..##.###.#..###, %.###.#.. | |
XPOS !byte 0 | |
YPOS !byte 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I still could not figure out how the above assembly correspond to the hex code printed on the KansasFest 2016 T-shirt.