Skip to content

Instantly share code, notes, and snippets.

@badvision
Last active August 19, 2020 16:57
Show Gist options
  • Save badvision/fdaae1fa694085ddcc93386a66f58c9a to your computer and use it in GitHub Desktop.
Save badvision/fdaae1fa694085ddcc93386a66f58c9a to your computer and use it in GitHub Desktop.
*= $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
@wyatt-wong
Copy link

I still could not figure out how the above assembly correspond to the hex code printed on the KansasFest 2016 T-shirt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment