X-Git-Url: http://cloudbase.mooo.com/gitweb/z180-stamp.git/blobdiff_plain/05437fb4cdb907816a4fc3ffafa2617fcf33266a..refs/tags/hexrel-6.6:/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 -