From e4ffe669a1c44a6e3ff1b1c6c389fd617eefcdf6 Mon Sep 17 00:00:00 2001 From: Virgil Dupras Date: Fri, 17 May 2019 08:33:22 -0400 Subject: [PATCH] acia: make zasm-friendly --- parts/z80/acia.asm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/parts/z80/acia.asm b/parts/z80/acia.asm index 86e9b1f..fe48208 100644 --- a/parts/z80/acia.asm +++ b/parts/z80/acia.asm @@ -16,21 +16,21 @@ ; *** CONSTS *** ; size of the input buffer. If our input goes over this size, we start losing ; data. -ACIA_BUFSIZE .equ 0x20 +.equ ACIA_BUFSIZE 0x20 ; *** VARIABLES *** ; Our input buffer starts there. This is a circular buffer. -ACIA_BUF .equ ACIA_RAMSTART +.equ ACIA_BUF ACIA_RAMSTART ; The "read" index of the circular buffer. It points to where the next char ; should be read. If rd == wr, the buffer is empty. Not touched by the ; interrupt. -ACIA_BUFRDIDX .equ ACIA_BUF+ACIA_BUFSIZE +.equ ACIA_BUFRDIDX ACIA_BUF+ACIA_BUFSIZE ; The "write" index of the circular buffer. Points to where the next char ; should be written. Should only be touched by the interrupt. if wr == rd-1, ; the interrupt will *not* write in the buffer until some space has been freed. -ACIA_BUFWRIDX .equ ACIA_BUFRDIDX+1 -ACIA_RAMEND .equ ACIA_BUFWRIDX+1 +.equ ACIA_BUFWRIDX ACIA_BUFRDIDX+1 +.equ ACIA_RAMEND ACIA_BUFWRIDX+1 aciaInit: ; initialize variables