From baa00e3ea00e7291d9c1e91faa00f0af71c22b24 Mon Sep 17 00:00:00 2001 From: "Daniele Verducci (ZenPenguin)" Date: Sun, 24 Jan 2021 11:48:35 +0100 Subject: [PATCH] Testing char drawing routine --- .../software/avr-assembly/main.asm | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) 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 12b354c..9a4b446 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 @@ -68,6 +68,23 @@ main: ldi HIGH_ACCUM, 0x00 out DDRB, HIGH_ACCUM ; set port as input (used as data bus) + ; test draw character routine + ser r3 + test_draw_loop: + ldi A, "P" + call draw_char + ldi A, "A" + call draw_char + ldi A, "T" + call draw_char + ldi A, "8" + call draw_char + ldi A, "0" + call draw_char + ldi A, " " + call draw_char + dec r3 + breq test_draw_loop ; *** timer setup (use 16-bit counter TC1) ***