jkotlinski / durexforth

Modern C64 Forth
Other
230 stars 28 forks source link

optimize `hold` #531

Closed ekipan closed 1 year ago

ekipan commented 1 year ago

Instead of moving characters forward, store them going backward.

ekipan commented 1 year ago

Though I guess the failure mode is quite different. 35th hold used to just trash <#, now it bops holdp's MSB I think? So subsequent holds are probably a bit more destructive.

ekipan commented 1 year ago

You could make it less unpredictable by moving holdp after the buffer, if you care enough.

jkotlinski commented 1 year ago

It does not matter so much to me, if it fails one way or another :-) I think it is fine the way it is. Thank you for the contribution!