# HG changeset patch # User boisy # Date 1054592165 0 # Node ID f7e46ac34ab6f77e1ee6a0abbf43618ccfe48a32 # Parent 0a678473d5cfdc2ca0d6579cbb905c5b83c44e4e Modified for improved source diff -r 0a678473d5cf -r f7e46ac34ab6 level2/modules/pipeman.asm --- a/level2/modules/pipeman.asm Mon Jun 02 20:42:40 2003 +0000 +++ b/level2/modules/pipeman.asm Mon Jun 02 22:16:05 2003 +0000 @@ -38,6 +38,7 @@ ifp1 use defsfile + use pipedefs endc tylg set FlMgr+Objct @@ -48,15 +49,8 @@ mod eom,name,tylg,atrv,start,size rmb $0000 -SIZE equ . +size equ . - org PD.FST -PD.READ rmb 4 -PD.WRITE rmb 4 -PD.END rmb 2 end of the buffer -PD.WPTR rmb 2 write pointer -PD.RPTR rmb 2 read pointer -PD.BLOCK rmb 1 0=block reads, 1=OK to read block flag org $0000 P.CPR rmb 1 process ID @@ -94,13 +88,13 @@ clrb rts -L008E leax PD.READ,y - cmpa PD.READ+P.CNT,y is the read count zero? +L008E leax PD.Read,y + cmpa PD.Read+P.CNT,y is the read count zero? Beq L009C - cmpa PD.WRITE+P.CNT,y is the write count zero? + cmpa PD.Writ+P.CNT,y is the write count zero? bne L00A9 - leax PD.WRITE,y + leax PD.Writ,y L009C lda P.CPR,x get process ID that's reading/writing beq L00A9 if none @@ -139,10 +133,10 @@ os9 F$SRqMem request one page for the pipe bcs L007A exit on error stu PD.BUF,Y save ptr to the buffer - stu