summaryrefslogtreecommitdiff
path: root/z180/conbuf-a.180
diff options
context:
space:
mode:
Diffstat (limited to 'z180/conbuf-a.180')
-rw-r--r--z180/conbuf-a.18017
1 files changed, 8 insertions, 9 deletions
diff --git a/z180/conbuf-a.180 b/z180/conbuf-a.180
index 096bbf9..e86b8b2 100644
--- a/z180/conbuf-a.180
+++ b/z180/conbuf-a.180
@@ -1,6 +1,6 @@
page 255
.z80
-
+
;
; FIFO channels for communication with avr
;
@@ -17,10 +17,10 @@
;--------------------------------------------------------------
dseg
-
- mkbuf co.fifo,co.fifo_len
- mkbuf ci.fifo,ci.fifo_len
+
+ mkbuf co.fifo_id, co.fifo, co.fifo_len
+ mkbuf ci.fifo_id, ci.fifo, ci.fifo_len
;--------------------------------------------------------------
@@ -50,7 +50,7 @@ buf.empty:
ret z
or 0ffh
ret
-
+
ff.in:
push ix
@@ -71,12 +71,12 @@ bg.wait:
inc h
bg.nc:
ld l,(hl)
-
+
ld a,(ix+o.out_idx) ;
inc a
and (ix+o.mask)
ld (ix+o.out_idx),a
-
+
ld a,l
pop hl
pop ix
@@ -122,7 +122,7 @@ bp.wait:
cp (ix+o.out_idx) ;19
jr z,bp.wait ;12/7
ld (ix+o.in_idx),a ;19
-
+
out (AVRINT6),a ;11
ld a,b ;4
pop bc ;10
@@ -163,4 +163,3 @@ bp.wait:
endif
end
-