mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-27 15:28:06 +11:00
acia: make zasm-friendly
This commit is contained in:
parent
45b8e84e2a
commit
e4ffe669a1
@ -16,21 +16,21 @@
|
|||||||
; *** CONSTS ***
|
; *** CONSTS ***
|
||||||
; size of the input buffer. If our input goes over this size, we start losing
|
; size of the input buffer. If our input goes over this size, we start losing
|
||||||
; data.
|
; data.
|
||||||
ACIA_BUFSIZE .equ 0x20
|
.equ ACIA_BUFSIZE 0x20
|
||||||
|
|
||||||
; *** VARIABLES ***
|
; *** VARIABLES ***
|
||||||
; Our input buffer starts there. This is a circular buffer.
|
; 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
|
; 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
|
; should be read. If rd == wr, the buffer is empty. Not touched by the
|
||||||
; interrupt.
|
; 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
|
; 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,
|
; 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.
|
; the interrupt will *not* write in the buffer until some space has been freed.
|
||||||
ACIA_BUFWRIDX .equ ACIA_BUFRDIDX+1
|
.equ ACIA_BUFWRIDX ACIA_BUFRDIDX+1
|
||||||
ACIA_RAMEND .equ ACIA_BUFWRIDX+1
|
.equ ACIA_RAMEND ACIA_BUFWRIDX+1
|
||||||
|
|
||||||
aciaInit:
|
aciaInit:
|
||||||
; initialize variables
|
; initialize variables
|
||||||
|
Loading…
Reference in New Issue
Block a user