News for hackers. Stuff that matters.
Re:Robot Game: Comparing 6502 C, Assembly, and Forth by microtherion on Sunday July 12, 2020 @07:48PM (#23815721)
Is the mult5 example an actual piece of code of your program?

Any multiplication where one multiplicand is a constant should be much faster with shifts and adds than with a loop. mult5, e.g. is: x+(x<<2)

Re:Robot Game: Comparing 6502 C, Assembly, and Forth by druzyek on Sunday July 12, 2020 @10:01PM (#23816469)
Right, I do this in the assembly versions everywhere I multiply by a constant. mult5 is just an example.