Skip to main content

Test03

Table of Contents

Description #

The [http://www.hpmuseum.org/cgi-sys/cgiwrap/hpmuseum/articles.cgi?read=700 The Museum of HP Calculators Calculator Benchmark]. It calculates the [[wikipedia:Eight_queens_puzzle|Eight queens puzzle]].

 ***P0
	AC MAC 8 Min0F
 LBL0
	MR00
    x=F GOTO4
    ISZ MR0F
	IND Min00
 LBL1
	1 M+1F MR00 Min09
 LBL2
	1 M-09 MR09
    x=0 GOTO0
	IND MR00 - IND MR09 =
    x=0 GOTO3
	abs + MR09 - MR00 =
    x=0 GOTO3
	GOTO2
 LBL3
    IND DSZ GOTO1
    DSZ GOTO3

 LBL4
	MR1F

The result is stored in M01 .. M08, the time to calculate is used in [[Office/FX-602P/Diff#Test_Program_3|speed test 3]].

Expected Result:

Register Value
L0 (x) 876
M00 8
M01 8
M02 4
M03 1
M04 3
M05 6
M06 2
M07 7
M08 5
M09 0
M0F 8
M1F 876