From e4c4b148ced1347935dff6200380e90cb3bfcde3 Mon Sep 17 00:00:00 2001 From: Leo C Date: Sun, 10 May 2015 12:54:12 +0200 Subject: Add unique id to fifos --- z180/fifoio.180 | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'z180/fifoio.180') diff --git a/z180/fifoio.180 b/z180/fifoio.180 index dd99c53..cbcece9 100644 --- a/z180/fifoio.180 +++ b/z180/fifoio.180 @@ -1,6 +1,6 @@ page 255 .z80 - + ; ; FIFO channels for communication with stm32 ; @@ -15,10 +15,10 @@ ;-------------------------------------------------------------- dseg - - mkbuf rx.buf,rx.buf_len - mkbuf tx.buf,tx.buf_len + + mkbuf ci.fifo_id, rx.buf,rx.buf_len + mkbuf co.fifo_id, tx.buf,tx.buf_len ;-------------------------------------------------------------- @@ -48,7 +48,7 @@ buf.empty: ret z or 0ffh ret - + f.in: push ix @@ -69,12 +69,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 @@ -118,7 +118,7 @@ bp.wait: jr z,bp.wait ld (hl),b ld (ix+o.in_idx),a - + ld a,b pop bc pop hl @@ -126,4 +126,3 @@ bp.wait: ret end - -- cgit v1.2.3