From fcdedd02dc940e64d5ab38ca853cc67e7fafd77b Mon Sep 17 00:00:00 2001 From: "matthias@arch" Date: Sat, 16 Dec 2023 02:44:47 +0100 Subject: [PATCH] add custom chars --- system/chars.h65 | 26 ++++++++++++++++++++++++++ system/chars.s65 | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 system/chars.h65 create mode 100644 system/chars.s65 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