From 64da85548eab1918019d6c8226fc8518ce895551 Mon Sep 17 00:00:00 2001 From: Daniele Verducci su MatissePenguin Date: Tue, 26 Jan 2021 08:29:08 +0100 Subject: [PATCH] Single line chars demo --- .../software/avr-assembly/main.asm | 45 +++---------------- 1 file changed, 7 insertions(+), 38 deletions(-) diff --git a/pat80-io-devices/composite-pal-adapter/software/avr-assembly/main.asm b/pat80-io-devices/composite-pal-adapter/software/avr-assembly/main.asm index 96aa01d..fb16305 100644 --- a/pat80-io-devices/composite-pal-adapter/software/avr-assembly/main.asm +++ b/pat80-io-devices/composite-pal-adapter/software/avr-assembly/main.asm @@ -84,44 +84,13 @@ main: ; test draw character routine ;call cursor_pos_home - ldi HIGH_ACCUM, 'P' - call draw_char - ldi HIGH_ACCUM, 'A' - call draw_char - ldi HIGH_ACCUM, 'T' - call draw_char - ldi HIGH_ACCUM, '8' - call draw_char - ldi HIGH_ACCUM, '0' - call draw_char - ldi HIGH_ACCUM, ' ' - call draw_char - ldi HIGH_ACCUM, 'H' - call draw_char - ldi HIGH_ACCUM, 'o' - call draw_char - ldi HIGH_ACCUM, 'm' - call draw_char - ldi HIGH_ACCUM, 'e' - call draw_char - ldi HIGH_ACCUM, ' ' - call draw_char - ldi HIGH_ACCUM, 'c' - call draw_char - ldi HIGH_ACCUM, 'o' - call draw_char - ldi HIGH_ACCUM, 'm' - call draw_char - ldi HIGH_ACCUM, 'p' - call draw_char - ldi HIGH_ACCUM, 'u' - call draw_char - ldi HIGH_ACCUM, 't' - call draw_char - ldi HIGH_ACCUM, 'e' - call draw_char - ldi HIGH_ACCUM, 'r' - call draw_char + ldi r18, 0x30 + draw_chars: + mov HIGH_ACCUM, r18 + call draw_char + inc r18 + cpi r18, 0x64 + brne draw_chars