diff options
author | Leo C | 2015-05-10 12:54:12 +0200 |
---|---|---|
committer | Leo C | 2015-05-10 12:54:12 +0200 |
commit | e4c4b148ced1347935dff6200380e90cb3bfcde3 (patch) | |
tree | 9ec51f8058aebc22d1b3ff415f4b15ab01ceedb6 /z180/conbuf-a.180 | |
parent | 1a2460dcd3bed50d5f2b7ba53e6e21a12935639b (diff) | |
download | z180-stamp-e4c4b148ced1347935dff6200380e90cb3bfcde3.zip |
Add unique id to fifos
Diffstat (limited to 'z180/conbuf-a.180')
-rw-r--r-- | z180/conbuf-a.180 | 17 |
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
-
|