Search found 5 matches

by arhtur
Sat Jun 05, 2021 12:04 am
Forum: Software Library
Topic: N queens in less than 150 lines
Replies: 0
Views: 1604

N queens in less than 150 lines

I know that the N queens algorithm can be long. Using code I found on the HP museum website by T. Klemm for another calculator, the HP 17BII for 4 queens, I made modifications for 8 queens. My code is a total of 149 lines and runs in about 6.5 seconds (faster than the 7+ time I saw in another post)....
by arhtur
Wed Mar 03, 2021 4:47 am
Forum: Software Library
Topic: Maze generator
Replies: 0
Views: 1265

Maze generator

To run the maze generator, do XEQ MZ
You also need the pix.raw program, because MZ calls PX (in the pix.raw program).
by arhtur
Fri Feb 26, 2021 5:01 am
Forum: Software Library
Topic: small digital clock
Replies: 1
Views: 1177

small digital clock

This smaller version of a digital clock should also run on Free42. You need both dclok.raw and digg.raw XEQ DCLOK will call DG (which displays the digits). After uploading the file, I realized there are 2 lines to add (if flags 34 and 35 are ever used by other programs) After LBL "CLKD", p...
by arhtur
Thu Feb 25, 2021 3:57 am
Forum: Software Library
Topic: large Digital Clock
Replies: 1
Views: 1121

large Digital Clock

This program will display a large digital clock on the screen using GrMod 2. You must have both dclock.raw and digi.raw loaded. If you run DCLK, it will call DIGITS. After uploading the file, I realized there are 2 lines to add (if flags 34 and 35 are ever used by other programs) After LBL "DCL...
by arhtur
Tue Feb 23, 2021 4:28 am
Forum: Software Library
Topic: Quick Sort
Replies: 0
Views: 904

Quick Sort

The program Quicksort.raw sorts numbers in registers 0 to 99. On program line 11 is the size (100 = registers 0 to 99). You can use the program Filla.raw to fill registers 0 to 99 with random numbers. If you do XEQ Q9, it will put the random numbers into matrix MM, which you can edit to view numbers...