Elektrine lite

← Feed

@colin_mcmillen@piaille.fr

Post #2900479

2025-09-13 09:58 UTC

When the user presses Q, we'll launch the composer with command-line parameters 'q' and the status ID if the toot is quotable. The composer doesn't know what to do of that parameter combination yet, we'll get to it. https://github.com/colinleroy/a2tools/commit/c15d80810c3959af8e9c31a1e484a699a99d7ee9 Total cost for the main binary: +168 bytes Total cost for the composer, which I didn't directly touch yet but it already has the updated status struct and parser: +68 bytes. #RetroComputing #AppleII #Mastodon

Replies (1)

  • @colin_mcmillen@piaille.fr 2025-09-13 10:10

    Let the composer display the original toot, along with "Your quote:", when quoting. https://github.com/colinleroy/a2tools/commit/c559536f60c1e61ee1283db740dad660b633fea9 The `if(compose_mode[0] == 'r')` got replaced with a switch() { case 'r': case 'q': ... } You guessed why, it is tighter than if(compose_mode[0] == 'r' || compose_mode[0] == 'q'). The cc65 optimizer is far from perfect, and that or'ed if would load the variable twice, get the first char of it twice, and compare it twice. With a switch, only the comparison is done twice. Cost so far, +46 bytes - but we're not done yet, as sending the quote would, for now, make a reply! #RetroComputing #Mastodon #AppleII

    Open ##2900480