From b499d320dedc2fe5d3a336344d5b4c66c82c6b1a Mon Sep 17 00:00:00 2001 From: Virgil Dupras Date: Fri, 17 May 2019 15:43:44 -0400 Subject: [PATCH] zasm: can now assemble stdio! --- parts/z80/stdio.asm | 8 ++++---- tools/tests/zasm/test6.asm | 4 ++++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/parts/z80/stdio.asm b/parts/z80/stdio.asm index 5f631fa..683e064 100644 --- a/parts/z80/stdio.asm +++ b/parts/z80/stdio.asm @@ -9,10 +9,10 @@ ; *** VARIABLES *** ; Used to store formatted hex values just before printing it. -STDIO_HEX_FMT .equ STDIO_RAMSTART -STDIO_GETC .equ STDIO_HEX_FMT+2 -STDIO_PUTC .equ STDIO_GETC+2 -STDIO_RAMEND .equ STDIO_PUTC+2 +.equ STDIO_HEX_FMT STDIO_RAMSTART +.equ STDIO_GETC STDIO_HEX_FMT+2 +.equ STDIO_PUTC STDIO_GETC+2 +.equ STDIO_RAMEND STDIO_PUTC+2 ; Select the blockdev to use as stdio before calling this. stdioInit: diff --git a/tools/tests/zasm/test6.asm b/tools/tests/zasm/test6.asm index 0328e6c..953ad22 100644 --- a/tools/tests/zasm/test6.asm +++ b/tools/tests/zasm/test6.asm @@ -10,3 +10,7 @@ .equ BLOCKDEV_RAMSTART ACIA_RAMEND .equ BLOCKDEV_COUNT 1 #include "blockdev.asm" +.dw aciaGetC, aciaPutC, 0, 0 + +.equ STDIO_RAMSTART BLOCKDEV_RAMEND +#include "stdio.asm"