
Nice find Kamikaze!
There's a small bug in the pbppi18l.mac file.
The SHIFTL?NCN macro should be changed as follows. (3's in red)
Code:
SHIFTL?NCN macro Nin, Cin, Nout
if ((Cin) == 1)
bcf STATUS, C
if ((Nout) == (Nin))
CHK?RP Nout
rlcf Nout, F
rlcf (Nout) + 1, F
rlcf (Nout) + 2, F
rlcf (Nout) + 3, F
else
CHK?RP Nin
rlcf Nin, W
MOVE?AB Nout
CHK?RP Nin
rlcf (Nin) + 1, W
MOVE?AB (Nout) + 1
CHK?RP Nin
rlcf (Nin) + 2, W
MOVE?AB (Nout) + 2
CHK?RP Nin
rlcf (Nin) + 3, W ; was 2
MOVE?AB (Nout) + 3
endif
else
MOVE?NN Nin, R0
movlw Cin
L?CALL SHIFTL
MOVE?ANN R0, Nout
endif
endm
SHIFTL_USED = 1
endmod
I'll let the guys know.
<br>
Bookmarks