John's Vademecum

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

User Tools

Site Tools


public:calculator:guides:dm41_snippets

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_snippets [03/07/22 17:48 BST] – [Example] johnpublic:calculator:guides:dm41_snippets [06/03/25 06:49 GMT] (current) – external edit 127.0.0.1
Line 2: Line 2:
  
  
-====== DM41X Snippets ======+====== DM41X Snippets ====== 
 + 
 +==== Advantage Pac : Flag 21 ==== 
 + 
 +I found that using some of the Advantage Pac programs (e.g. ''MATRX'' or ''CFIT'') would lead to ''AVIEW'' instructions in programs run subsequently to cause a ''HALT'' - requiring use of the <key>R/S</key> key. 
 + 
 +I was told via a question on the [[https://forum.swissmicros.com/viewforum.php?f=24 | Swiss Micros Forum ]] that this was likely to be due to the Advantage Pac setting ''FLAG 21'' (printer active) to help in its own presentation of information on the display.  
 + 
 +''FLAG 21'' SET while ''FLAG 55'' is CLEAR (since there's no Printer Module active) causes AVIEW instructions to halt awaiting user intervention (<key>R/S</key> key) 
 + 
 +To restore things to //normal// : either ''CLEAR'' Flag 21 via ''CF'' or simply turn the calculator off and on again. 
 + 
 +See APPENDIX D in the HP41CX User Manual Volume 2 for a better explanation of the use of Flag 21 to control ''AVIEW'' behaviour. 
 + 
 + 
 + 
 + 
 +===== Extended Memory ===== 
 + 
 +FIXME  
 + 
 +Copy a program to Extended Memory: 
 + 
 +  * Put Prog's name in ''Alpha'' register 
 +  * XEQ ''storep'' 
 +  * The prog remains in main memory but can be deleted (''CLP'') if memory needed 
 +  * To restore to main memory put name in ''Alpha'' and then ''XEQ'' ''GETSUB'' 
  
 ===== DDAYS ===== ===== DDAYS =====
Line 11: Line 38:
   * enter 1<sup>st</sup> date into Y-stack as ''dd.mmyyyy''   * enter 1<sup>st</sup> date into Y-stack as ''dd.mmyyyy''
   * key in 2<sup>nd</sup> date into X-stack as ''dd.mmyyyy''   * key in 2<sup>nd</sup> date into X-stack as ''dd.mmyyyy''
-  * <key>''XEQ''</key> <key>''ALPHA''</key> <key>''D''</key> <key>''D''</key> <key>''A''</key> <key>''Y''</key> <key>''S''</key> <key>''ALPHA''</key> +  * <key>XEQ</key> <key>ALPHA</key> <key>D</key> <key>D</key> <key>'A'</key> <key>Y</key> <key>'S'</key> <key>ALPHA</key> 
   * result is the difference in days.   * result is the difference in days.
   * ''DDAYS'' can be added to the ''CST'' program chooser to make it easier if multiple calculations are required   * ''DDAYS'' can be added to the ''CST'' program chooser to make it easier if multiple calculations are required
Line 19: Line 46:
 Days between 27/2/66 and 31/5/22 Days between 27/2/66 and 31/5/22
  
-''27.021966'' <key>''ENTER''</key> +''27.021966'' <key>ENTER</key> 
-''31.052022'' <key>''XEQ''</key> <key>''ALPHA''</key> <key>''D''</key> <key>''D''</key> <key>''A''</key> <key>''Y''</key> <key>''S''</key> <key>''ALPHA''</key>+''31.052022'' <key>XEQ</key> <key>ALPHA</key> <key>D</key> <key>D</key> <key>'A'</key> <key>Y</key> <key>'S'</key> <key>ALPHA</key>
  
 Result = ''20,547'' Result = ''20,547''
Line 26: Line 53:
 Check :  Check : 
  
-''365'' <key>''÷''</key> +''365'' <key>÷</key> 
  
 Result ''56.293'' Result ''56.293''
Line 50: Line 77:
   * Acknowledging a non-repeating (i.e. ''Z'' was ''0'') alarm cancels it.    * Acknowledging a non-repeating (i.e. ''Z'' was ''0'') alarm cancels it. 
   * Acknowledging a repeating alarm cancels it and re-arms it, adding the ''Repeat Interval'' to create the new alarm time.   * Acknowledging a repeating alarm cancels it and re-arms it, adding the ''Repeat Interval'' to create the new alarm time.
-  * Pressing <key>''STO''</key> cancels the alarm but makes it a ''PAST DUE'' alarm.+  * Pressing <key>STO</key> cancels the alarm but makes it a ''PAST DUE'' alarm.
  
 ==== Example ==== ==== Example ====
Line 56: Line 83:
 Set alarm for 22:20, today, not repeating, called ''Supper'' Set alarm for 22:20, today, not repeating, called ''Supper''
  
-  * <key>''ALPHA''</key> <key>''S''</key> <key>''U''</key> <key>''P''</key> <key>''P''</key><key>''E''</key><key>''R''</key> <key>''ALPHA''</key> +  * <key>ALPHA</key> <key>'S'</key> <key>U</key> <key>P</key> <key>P</key><key>E</key><key>R</key> <key>ALPHA</key> 
-  * <key>''0''</key> <key>''ENTER''</key> (for Z = repeat interval) +  * <key>0</key> <key>ENTER</key> (for Z = repeat interval) 
-  * <key>''0''</key> <key>''ENTER''</key> (for Y = Date = Today) +  * <key>0</key> <key>ENTER</key> (for Y = Date = Today) 
-  * ''22.20'' <key>''XEQ''</key> <key>''ALPHA''</key> <key>''X''</key> <key>''Y''</key> <key>''Z''</key> <key>''A''</key> <key>''L''</key> <key>''M''</key> <key>''ALPHA''</key>+  * ''22.20'' <key>XEQ</key> <key>ALPHA</key> <key>X</key> <key>Y</key> <key>Z</key> <key>'A'</key> <key>L</key> <key>M</key> <key>ALPHA</key>
  
 At ''22:20'' the alarm is activated. ''ALPHA'' shows ''SUPPER'' At ''22:20'' the alarm is activated. ''ALPHA'' shows ''SUPPER''
  
-Alarm is cancelled by pressing //any key but ''STO''//+Alarm is cancelled by pressing //any key but <key>STO</key>//
  
-Pressing ''STO'' creates a ''PAST DUE'' alarm which means it gets re-triggered if the calculator is turned off. It can be cancelled and deleted by pressing any key (except ''STO'') and then the calculator will turn off. Pressing ''STO'' will create a new Past Due alarm, and allow the calculator to turn off. On turn on the Past Due alarm will still exist and turning off will trigger it again.+Pressing <key>STO</key> creates a ''PAST DUE'' alarm which means it gets re-triggered if the calculator is turned off. It can be cancelled and deleted by pressing any key (except <key>STO</key>) and then the calculator will turn off. Pressing <key>STO</key> will create a new Past Due alarm, and allow the calculator to turn off. On turn on the Past Due alarm will still exist and turning off will trigger it again.
  
 A Past Due alarm is useful to remind you that something happened previously and turning the calculator off is a memory-jogger. A Past Due alarm is useful to remind you that something happened previously and turning the calculator off is a memory-jogger.
public/calculator/guides/dm41_snippets.1656866917.txt.gz · Last modified: 06/03/25 06:49 GMT (external edit)