Post Reply 
2024 HHC Programming Contest - RPN #1
09-24-2024, 10:39 PM
Post: #42
RE: 2024 HHC Programming Contest - RPN #1
My own efforts for the HP33 / HP25 are not nearly as inventive as some others, and I couldn't include a label as they are not available.

First attempt
Code:

 01-      7 7
 02-     31 ENTER
 03-      7 7
 04-     31 ENTER
 05-      7 7
 06-     71 /
 07-     51 +
 08-     31 ENTER
 09-     31 ENTER
 10-     51 +
 11-     51 +
 12-  13 00 GOTO 00
Only 12 bytes thanks to the way each step is stored.

Second attempt (managed to shave off one byte from my original attempt by dividing before adding)
Code:

 01-      7 7
 02-     31 ENTER
 03-      7 7
 04-     71 /
 05-      7 7
 06-     51 +
 07-     31 ENTER
 08-     31 ENTER
 09-     51 +
 10-     51 +
 11-  13 00 GOTO 00
11 bytes...

Perhaps I'll get my x11-calc-41c code working before the next HHC Meeting!

Mike T.

HP21, HP25, HP32E, HP33C, HP34C, HP10C, HP11C, HP12C, HP32S, HP22S
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: 2024 HHC Programming Contest - RPN #1 - Mike T. - 09-24-2024 10:39 PM



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