Well, you did mention speed...Sik wrote:You only need 100 entries for that ;Ptomaitheous wrote:I think having a 256 LUT, which outputs 0 to 99.
Up the 256 to 512bytes..
Code: Select all
ByteBin2Dec:
lda TableDec,x
ldy SwapLowNybble2BCD,x
ldx TableDec,y
rts
Edit: I guess it doesn't make any sense to have a whole 'nother 256 LUT for high nybble shift and extraction, when it can just convert it directly. So just TableDec and TableDecUpper. I also thought you could simply cascade afterwards, for a larger binary conversion using this method, but I just realized that's not going to work. Meh...