[wp34s] Alternative MIO (allows calculations when entering element values)



#3

Here's an alternative version of MIO that uses local registers. The main advantage is that it doesn't depend on the matrix descriptor being preserved in register L, so that the values of the matrix elements can be calculated without causing the program to fail.

001 LBL'MIO'
002 LBL A
003 LocR 002
004 STO .00
005 SF .00
006 LBL 02
007 RCL .00
008 M-ALL
009 STO .01
010 LBL 01
011 RCL .01
012 RCL .00
013 M.IJ
014 CL[alpha]
015 [alpha]'('
016 [alpha]IP X
017 [alpha]','
018 [alpha]IP Y
019 [alpha]')'
020 RCL[->].01
021 PROMPT
022 STO[->].01
023 ISG .01
024 GTO 01
025 FS? .00
026 GTO 02
027 GTO 03
028 LBL B
029 LocR 002
030 STO .00
031 LBL 03
032 CF .00
033 CL[alpha]
034 [alpha]'R|C'
035 PROMPT
036 x[<->]y
037 RCL .00
038 M.REG
039 STO .01
040 GTO 01

#4

Thanks for the code, David. Have you checked out the alternative 'MED'? It does not depend on L to save the matrix descriptor. OTH it uses some global registers (the named registers after setting the stack size to 4).


Possibly Related Threads…
Thread Author Replies Views Last Post
  [Download] PrimeComm: Alternative small utility to upload/download programs to the HP Prime Erwin Ried 6 2,603 11-17-2013, 10:18 AM
Last Post: Erwin Ried
  [HP Prime] Constants Library Values Timothy Roche 24 7,586 11-02-2013, 04:17 PM
Last Post: Les Koller
  Entering,Saving,and Analysis /Fitting X Y Data on the Prime Harold A Climer 6 2,529 10-26-2013, 01:54 PM
Last Post: Tim Wessman
  HP-Prime: issues in entering expressions fhub 30 8,176 10-02-2013, 12:32 AM
Last Post: Tim Wessman
  HP 35s - multiple program input values? Arno 3 1,686 04-29-2013, 11:27 AM
Last Post: Gerson W. Barbosa
  Trouble entering a HP35s program line Arno 2 1,566 04-05-2013, 06:28 PM
Last Post: Arno
  HP 48G -- entering more than one equation into the PLOT application Randal B 1 1,113 01-24-2013, 12:25 AM
Last Post: Chris Dreher
  [WP34S] WP34S firmware on the AT91SAM7L-STK dev kit? jerome ibanes 1 1,232 10-04-2012, 04:59 PM
Last Post: Paul Dale
  DM-xxCC Default Display Values Mark Hardman 3 1,537 09-13-2012, 03:42 PM
Last Post: Lode
  [41CL] Alternative serial connector, saving a port Kerem Kapkin (Silicon Valley, CA) 24 6,928 07-06-2012, 11:51 AM
Last Post: aurelio

Forum Jump: