View Single Post
Old 02 August 2021, 12:47   #204
Photon
Moderator
 
Photon's Avatar
 
Join Date: Nov 2004
Location: Eksjö / Sweden
Posts: 5,632
An optimization of mine was brought to my attention yesterday It's nothing advanced but maybe it fits. It goes under basic ALU operations really, which we could make a list of.

not = neg;sub #1

For example, if a number is negative and should be used for a loop count (e.g. dbf), not.w d0 negates it and subtracts 1 in a single instruction.
Photon is offline  
 
Page generated in 0.04676 seconds with 10 queries