Farmer Silas delivering cabbage and broccoli

Description

GSB 6
The program enters the data and outputs the result in D

I added some R/S statements in the program after each set of matrix STO statements. They are ignored as they are immediately after the last data entry where a program statement skip automatically occurs. If you don’t use these redundant statements you will get strange results. USER mode during programming allows indexed STO and RCL of matrix elements. The f MATRIX 0 statement is also essential.

Program Resources

Labels

Name Description
 6 GSB 6 to run
.7

Flags

Number Description
8

Program

Line Display Key Sequence Line Display Key Sequence Line Display Key Sequence
000 023 42,23,12 f DIM B 046 2 2
001 42,21, 6 f LBL 6 024 42,16, 1 f MATRIX 1 047 48 .
002 43, 5, 8 g CF 8 025 2 2 048 9 9
003 42,16, 0 f MATRIX 0 026 7 7 049 6 6
004 2 2 027 4 4 050 u 44 12 USER STO B
005 36 ENTER 028 u 44 12 USER STO B 051 1 1
006 42,23,11 f DIM A 029 2 2 052 5 5
007 42,16, 1 f MATRIX 1 030 3 3 053 1 1
008 1 1 031 3 3 054 48 .
009 u 44 11 USER STO A 032 u 44 12 USER STO B 055 3 3
010 u 44 11 USER STO A 033 3 3 056 6 6
011 48 . 034 3 3 057 u 44 12 USER STO B
012 2 2 035 1 1 058 31 R/S
013 4 4 036 u 44 12 USER STO B 059 42,26,14 f RESULT D
014 u 44 11 USER STO A 037 1 1 060 45,16,12 RCL MATRIX B
015 48 . 038 2 2 061 45,16,11 RCL MATRIX A
016 8 8 039 0 0 062 10 ÷
017 6 6 040 48 . 063 42,21, .7 f LBL . 7
018 u 44 11 USER STO A 041 3 3 064 42 31 f PSE
019 31 R/S 042 2 2 065 u 45 14 USER RCL D
020 2 2 043 u 44 12 USER STO B 066 22 .7 GTO . 7
021 36 ENTER 044 1 1 067 42 31 f PSE
022 3 3 045 1 1 068 43 32 g RTN