View Single Post
Old 25th May 2021, 10:24 pm   #14
Mark1960
Octode
 
Join Date: Mar 2020
Location: Kitchener, Ontario, Canada
Posts: 1,265
Default Re: New SC/MP II system

Use auto increment and then test the low byte of each pointer for zero, if its zero test the high byte, low nibble for zero, then increment the high nibble. It would add more code but its only executed once in every 256 bytes.

Also use load with auto increment for the counter, but take the 2s complement at the start of the loop. Exclusive or with FF for each byte and load with auto increment to add one.

I tried writing an example but copying and pasting on the ipad is too painfull.
Mark1960 is offline