From 9de47539843dbfc4f4ef7658f35565dea23d6836 Mon Sep 17 00:00:00 2001 From: Daniele Verducci su MatissePenguin Date: Sun, 24 Jan 2021 12:13:17 +0100 Subject: [PATCH] Testing character generation --- .../software/avr-assembly/main.asm | 24 ++++++++++++------- 1 file changed, 15 insertions(+), 9 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 9a4b446..b15fb5f 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 @@ -67,23 +67,29 @@ main: out DDRA, HIGH_ACCUM ; set port as output (contains video pin) ldi HIGH_ACCUM, 0x00 out DDRB, HIGH_ACCUM ; set port as input (used as data bus) - + ; test draw character routine - ser r3 + ser r17 test_draw_loop: - ldi A, "P" + ldi r16, 'P' + mov A, HIGH_ACCUM call draw_char - ldi A, "A" + ldi HIGH_ACCUM, 'A' + mov A, HIGH_ACCUM call draw_char - ldi A, "T" + ldi HIGH_ACCUM, 'T' + mov A, HIGH_ACCUM call draw_char - ldi A, "8" + ldi HIGH_ACCUM, '8' + mov A, HIGH_ACCUM call draw_char - ldi A, "0" + ldi HIGH_ACCUM, '0' + mov A, HIGH_ACCUM call draw_char - ldi A, " " + ldi HIGH_ACCUM, ' ' + mov A, HIGH_ACCUM call draw_char - dec r3 + dec r17 breq test_draw_loop