diff --git a/system/chars.h65 b/system/chars.h65 new file mode 100644 index 0000000..4491900 --- /dev/null +++ b/system/chars.h65 @@ -0,0 +1,26 @@ +.ifndef INCLUDE_CHARS +INCLUDE_CHARS = 1 + +.include "system.h65" + +.scope chars + +ARROW_RIGHT = $7E +ARROW_LEFT = $7F +DOT = $A5 + +Import chars, CAT, SMILEY, SMILEY_XD + +.macro SetCustomChar charaddr,asciinr + lda #charaddr + sta ARG1 + lda #asciinr + jsr lcd::set_custom_char +.endmacro + + +.endscope + +.endif diff --git a/system/chars.s65 b/system/chars.s65 new file mode 100644 index 0000000..6340af7 --- /dev/null +++ b/system/chars.s65 @@ -0,0 +1,34 @@ +.include "chars.h65" + +Export chars, CAT, SMILEY, SMILEY_XD + +.rodata +CAT: +.byte %00000 +.byte %10001 +.byte %11111 +.byte %11111 +.byte %01110 +.byte %11111 +.byte %01110 +.byte %00000 + +SMILEY_XD: +.byte %00000 +.byte %01010 +.byte %00100 +.byte %01010 +.byte %00000 +.byte %11111 +.byte %01110 +.byte %00000 + +SMILEY: +.byte %00000 +.byte %00000 +.byte %01010 +.byte %00000 +.byte %11111 +.byte %01110 +.byte %00000 +.byte %00000