Try to learn something about everything, and everything about somethingThomas Huxley “Darwin's bulldog” (1824-1895)

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
public:calculator:guides:dm41_save_stats [10/02/26 10:02 GMT] – [Multiple Saved Files] johnpublic:calculator:guides:dm41_save_stats [10/02/26 18:01 GMT] (current) – [Multiple Saved Files] john
Line 14: Line 14:
 It is possible to save the 6 registers in a data file in Extended Memory and then use the statistics for other things, and restore the saved Statistics back to Main Memory when required. It is possible to save the 6 registers in a data file in Extended Memory and then use the statistics for other things, and restore the saved Statistics back to Main Memory when required.
  
-By Default the Statistics registers start at R11 but this can be changed with the command ''∑REG''+By Default the Statistics registers start at **R11** but this can be changed with the command ''∑REG''
  
 This is the default list of Statistics Registers and contents This is the default list of Statistics Registers and contents
Line 24: Line 24:
 |R15|∑xy|Summation of products of x- and y-values.| |R15|∑xy|Summation of products of x- and y-values.|
 |R16|n|Number of data points accumulated.| |R16|n|Number of data points accumulated.|
 +
 +**Advantage Pac : CFIT application ** seems to reset ''∑REG'' to **12**
 +
 ===== Extended Memory Data File ===== ===== Extended Memory Data File =====
  
Line 115: Line 118:
  
 I've set up **two** data files : ''REGS'' and ''CHESS'' in extended memory and made **two** version of the simple program above, the only change is to alter the lines which put the name of the file in ''ALPHA'' I've set up **two** data files : ''REGS'' and ''CHESS'' in extended memory and made **two** version of the simple program above, the only change is to alter the lines which put the name of the file in ''ALPHA''
 +
 +
 +Then I thought of adding a 7th Register holding the ''DATE'' of the latest ''SAVE'' for the ''CHESS'' statistics, so I can keep track of whether I'm up to date in entering the scores.
 +
 +Delete the original ''CHESS'' Data File & make a new one with 7 registers 
 +
 +  * ''ALPHA'' -> ''CHESS''
 +  * execute ''PURFL''
 +  * ''X'' = ''7''
 +  * ''ALPHA'' still -> ''CHESS''
 +  * execute ''CRFLD'' to create the new 7-register data file
 +
 +
 +The date is automatically stored in the register just //after// the ''Stats'' - in general in ''R18'' when ''ΣREG'' is ''12'' - and automatically adapts the register used depending on ''ΣREG?''
 +
  
 Here is ''SAVEC'' and ''GETC'' for save''C''hess and get''C''hess Here is ''SAVEC'' and ''GETC'' for save''C''hess and get''C''hess
 +
  
 <code> <code>
Line 125: Line 144:
 SEEKPTA SEEKPTA
 ∑REG? ∑REG?
 +STO 01
 +6
 ++
 +STO 00
 +DATE
 +STO IND 00
 +RCL 01
 1.001 1.001
 * *
-.005+.006
 + +
 SAVERX SAVERX
Line 135: Line 161:
 CLD CLD
 RTN RTN
 +END
 +
 +</code>
 +
 +<code>
 LBL ¬GETC LBL ¬GETC
 ¬CHESS ¬CHESS
Line 140: Line 171:
 SEEKPTA SEEKPTA
 ∑REG? ∑REG?
 +STO 01
 +6
 ++
 +STO 00
 +RCL 01
 1.001 1.001
 * *
-.005+.006
 + +
 GETRX GETRX
-¬CHESS OK+CLA 
 +RCL IND 00 
 +¬LAST  
 +ADATE
 AVIEW AVIEW
 PSE PSE
 CLD CLD
 RTN RTN
 +END
  
 </code> </code>
-===== Further Information =====+===== Further Ideas ===== 
 + 
 +I might make a better version which prompts for a Data File name rather than having one separate program for each scenario
  
  

Navigation