Post Reply 
HHC 2022 - Programming Contest - no responses until after 6am Monday 6am CENTRAL
09-12-2022, 11:52 AM (This post was last modified: 09-12-2022 11:56 AM by John Keith.)
Post: #15
RE: HHC 2022 - Programming Contest - no responses until after 6am Monday 6am CENTRAL
(09-12-2022 09:58 AM)3298 Wrote:  Well, that's the sticking point, L256 is a built-in library since the 49g, as built-in as L171 with HEAD and TAIL. You can't uninstall it, unlike EQLIB and PRTBL (which on a new 50g are preinstalled in the user-owned section of flash).
I presume it's not attached by default to "make things easier for the novice user", i.e. basically the same reasoning that got us the stupid algebraic mode as default. At this point, running 256. ATTACH at startup should be as automatic for a power-user as doing -62. SF

I agree with 3298's reasoning and in fact, you don't even have to formally "attach" Library 256, just set flag -86 and do a warm start.

In the spirit of rebellion, I am posting my program for the 50g which uses one Library 256 command, even though it does not qualify. 124.5 bytes, it assumes exact mode and flag -86 set. Smile

Code:

Spoiler alert!









\<< 0. SWAP R\->I                     @ Insure that n is exact and zero counter
  DO DUP \->STR SREV OBJ\-> +         @ Reverse and add
    SWAP 1. + SWAP                    @ Increment counter
  UNTIL DUP2 SIZE 12. > SWAP 50. > OR @ Greater than 12 digits or 50 steps?
    { DROP2 0. DUP 1. }               @ Then replace with two zeros
    { DUP \->STR DUP SREV SAME }      @ Else test if palindrome
    IFTE
  END
\>>
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: HHC 2022 - Programming Contest - no responses until after 6am Monday 6am CENTRAL - John Keith - 09-12-2022 11:52 AM



User(s) browsing this thread: 1 Guest(s)