Post Reply 
Raw files for these HP 67 program listings ?
09-09-2016, 10:04 PM (This post was last modified: 09-10-2016 06:14 AM by Dieter.)
Post: #71
RE: Raw files for these HP 67 program listings ?
(09-09-2016 12:35 PM)Gene Wrote:  If we find such byte savings in each program, we might be able to fit a complete additional game into the 8K image. I had to leave out a couple of worthy possibilities.

OK, if you want to save some more precious bytes, here is a shorter version of Jive Turkey. It uses a less memory consuming random number generator and takes advantage of the HP41 SIGN function which makes the evaluation of the user input shorter and faster. This way the program requires just 75 bytes, also one data register is saved.

Initialize: XEQ"JT" => JIVE TURKEY
Enter percentage of true answers: [A]
Enter random seed (with fractional part) and start: [B] => 0
Enter guess: [C] => –1 or 1, or number of guesses if correct.
View number of guesses: [D]

Dieter

.zip  JT2.zip (Size: 517 bytes / Downloads: 5)
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Raw files for these HP 67 program listings ? - Dieter - 09-09-2016 10:04 PM



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