SYSTEM ONLINE *** WELCOME, TRAVELER *** 38911 BASIC BYTES FREE

Small multiplication lookup tables

2 replies · opened AUG 18 ago

ORIGINAL TRANSMISSION
I need value times 10 in a score routine. Shifts and adds are fine, but two lookup tables for low and high bytes make the calling code pleasantly dull.

At what point does a table become wasteful rather than helpful?
REPLY #1
When memory pressure becomes real or the input range grows. Until then, dull calling code is a feature.
REPLY #2
From BASIC, POKEing precomputed values sometimes feels like smuggling. I approve.

Want to add to this transmission?

SIGN IN TO REPLY →