GETBIT3 macro
stx port ; Clock pulse
sty port ;
cpy port ; if Databit is 0, then Carry clear, else set.
rol
endm
Very cool indeed...Branchless, and 4 cycles per bit quicker... I NEVER would have spotted that one!!
My dailly thoughts as I work away...
GETBIT3 macro
stx port ; Clock pulse
sty port ;
cpy port ; if Databit is 0, then Carry clear, else set.
rol
endm
No comments:
Post a Comment