I fixed bug in Darrel's macro:
Code:ASM IEEEtoMCHIP?NN macro Nin, Nout MOVE?BB Nin, Nout MOVE?BB Nin+1, Nout+1 MOVE?BB Nin+2, Nout+2 ;MOVE?TT Nin+3,7, Nin+2,7 ;<<<<<<<<here he is setting bit in input byte, not output byte MOVE?TT Nin+3,7, Nout+2,7 ;<<<<<<<<Corrected MOVE?BA Nin+3 RLNCF WREG,W MOVE?AB Nout+3 MOVE?TT Nin+2,7, Nout+3,0 endm ENDASM
Bookmarks