ASL $FD ROL LDX #$08 .loop1 CMP $FC BCC *+4 SBC $FC ROL $FD ROL DEX BNE .loop1 LDX #$08 .loop2 CMP $FC BCC *+4 SBC $FC ROL $FE ASL DEX BNE .loop2
sec lda logtable,x sbc logtable,y tax lda exptable,x