HP 41 - branching to local label and return stack - FINAL RESULTS AND PROGRAMS
06-22-2019, 09:59 PM (This post was last modified: 06-22-2019 10:18 PM by Artur - Brasil.)
Post: #39
 Artur - Brasil Member Posts: 152 Joined: Sep 2014
RE: HP 41 - branching to local label and return stack
Now, the second equation: permeability: (u + uo.ur) - B/H = 0
Variables versus registers: 01 - u; 02 - B; 13 - h; 04 - R; 05 - ur; uo is constant - reg 45
We will need to make XOR(u; ur; B) H <> 0

048 LBL 02 ........ second function
049 "PML"
050 ASTO X
051 CLA ............ here I need the u character. It will cause a disturbe in X register
052 12
053 XTOA
054 "> B ^H R "
055 X<>Y ........ I need to restore X register with function name for SOLVE.
056 XEQ "SFT1"

057 CLA ............... also no second menu
058 XEQ "SFT2"
059 1 .................. now, as we don't have to check result of some operation, I can
060 5 .................. use the registers numbers instead of values and call XORR (by registers)
061 2 .................. u; ur; B
062 RCL 44 ......... and the register number for variable solving
063 XEQ "XORR"

064 X=0?
065 GTO 11 ....... if XOR fails...

066 RCL 13 ...... if variables are ok, finally corrects the H variable
067 X=0?
068 1
069 STO 13

070 XEQ "SFT3" ..... everything ok, let's solve
071 GTO 02 .... once done, go back to function

072 LBL 11 .... for treat errors
073 "ZERE "
074 12 ..... again the u character ...
075 XTOA
076 ">*"
077 XTOA
078 ">R:B"
079 XEQ "SFT4" ... just show a message
080 GTO 02 .... go back to function

081 LBL "PML" ...... the function itself
082 STO IND 44 .... always save IND 44
083 RCL 05
084 RCL 45
085 *
086 RCL 01
087 +
088 RCL 02
089 RCL 13
090 /
091 -
092 RTN

ARTUR MARIO JUNIOR
BRAZIL
 « Next Oldest | Next Newest »

 Messages In This Thread HP 41 - branching to local label and return stack - FINAL RESULTS AND PROGRAMS - Artur - Brasil - 05-20-2019, 02:18 PM RE: HP 41 - branching to local label and return stack - Craig Bladow - 05-20-2019, 03:00 PM RE: HP 41 - branching to local label and return stack - Artur - Brasil - 05-20-2019, 04:30 PM RE: HP 41 - branching to local label and return stack - Dave Britten - 05-20-2019, 03:41 PM RE: HP 41 - branching to local label and return stack - Artur - Brasil - 05-20-2019, 05:13 PM RE: HP 41 - branching to local label and return stack - Sylvain Cote - 05-20-2019, 05:33 PM RE: HP 41 - branching to local label and return stack - Artur - Brasil - 05-20-2019, 05:44 PM RE: HP 41 - branching to local label and return stack - Artur - Brasil - 05-20-2019, 05:50 PM RE: HP 41 - branching to local label and return stack - Sylvain Cote - 05-20-2019, 06:37 PM RE: HP 41 - branching to local label and return stack - Artur - Brasil - 05-20-2019, 06:47 PM RE: HP 41 - branching to local label and return stack - Sylvain Cote - 05-20-2019, 06:34 PM RE: HP 41 - branching to local label and return stack - Artur - Brasil - 05-20-2019, 06:43 PM RE: HP 41 - branching to local label and return stack - Sylvain Cote - 05-20-2019, 07:28 PM RE: HP 41 - branching to local label and return stack - Artur - Brasil - 05-20-2019, 07:42 PM RE: HP 41 - branching to local label and return stack - Sylvain Cote - 05-20-2019, 08:19 PM RE: HP 41 - branching to local label and return stack - Artur - Brasil - 05-20-2019, 08:29 PM RE: HP 41 - branching to local label and return stack - Sylvain Cote - 05-20-2019, 09:51 PM RE: HP 41 - branching to local label and return stack - Garth Wilson - 05-20-2019, 10:03 PM RE: HP 41 - branching to local label and return stack - Artur - Brasil - 05-20-2019, 11:18 PM RE: HP 41 - branching to local label and return stack - Sylvain Cote - 05-20-2019, 11:48 PM RE: HP 41 - branching to local label and return stack - Artur - Brasil - 05-21-2019, 11:12 AM RE: HP 41 - branching to local label and return stack - Sylvain Cote - 05-21-2019, 01:45 PM RE: HP 41 - branching to local label and return stack - Thomas Okken - 05-22-2019, 12:28 AM RE: HP 41 - branching to local label and return stack - rprosperi - 05-22-2019, 01:44 AM RE: HP 41 - branching to local label and return stack - Artur - Brasil - 05-22-2019, 02:02 AM RE: HP 41 - branching to local label and return stack - Gene - 06-21-2019, 11:07 PM RE: HP 41 - branching to local label and return stack - Sylvain Cote - 05-21-2019, 11:17 PM RE: HP 41 - branching to local label and return stack - Artur - Brasil - 05-22-2019, 01:50 AM RE: HP 41 - branching to local label and return stack - Artur - Brasil - 05-22-2019, 02:00 AM RE: HP 41 - branching to local label and return stack - Sylvain Cote - 05-22-2019, 07:08 PM RE: HP 41 - branching to local label and return stack - Sylvain Cote - 05-23-2019, 02:24 AM RE: HP 41 - branching to local label and return stack - Artur - Brasil - 05-23-2019, 12:11 PM RE: HP 41 - branching to local label and return stack - Sylvain Cote - 05-23-2019, 11:38 PM RE: HP 41 - branching to local label and return stack - Artur - Brasil - 06-21-2019, 01:42 AM RE: HP 41 - branching to local label and return stack - Bill Duncan - 06-21-2019, 10:11 PM RE: HP 41 - branching to local label and return stack - Artur - Brasil - 06-22-2019, 01:01 PM RE: HP 41 - branching to local label and return stack - Artur - Brasil - 06-22-2019, 04:16 PM RE: HP 41 - branching to local label and return stack - Artur - Brasil - 06-22-2019, 07:31 PM RE: HP 41 - branching to local label and return stack - Artur - Brasil - 06-22-2019 09:59 PM RE: HP 41 - branching to local label and return stack - Artur - Brasil - 06-22-2019, 11:00 PM RE: HP 41 - branching to local label and return stack - Artur - Brasil - 06-23-2019, 02:24 AM RE: HP 41 - branching to local label and return stack - FINAL RESULTS AND PROGRAMS - Sylvain Cote - 06-23-2019, 04:03 PM RE: HP 41 - branching to local label and return stack - Artur - Brasil - 06-23-2019, 02:40 AM

User(s) browsing this thread: 1 Guest(s)