Post Reply 
Circuit Analysis Pac Module Import to V41 Error Program
10-30-2023, 12:46 AM
Post: #1
Circuit Analysis Pac Module Import to V41 Error Program
Hello everyone,
I haven't been able to resolve the following problem for days.
I'm trying to import the CIRCUIT.MOD module of the Circuit Analysis Pac for hp-41 and make it work on the V41 simulator in 41CX configuration.
The steps I followed reading the various messages on the forum that deal with how to import a .MOD module are the following:
1> Using the ROM2RAW.exe software with -s option (suppresses the translation of the hp-41 to free42 character codes) and I get the circuit.raw file
2> Using the hp41UC software /r=circuit.raw /l=circuit.lif and I get
the circuit.lif file
3> I use the Ilper software with tcp/ip connection and V41 emulator (41cx) and point the HP9114B Drive to the circuit.lif file
I run ALPHA circuit ALPHA and XEC alpha READP alpha.
The contents of the CIRCUIT module should be loaded into the V41's memory.
4> I run XEC alpha GNAP alpha from V41 and the program starts asking me for the no. of NODES and the n. of BRENCH.
After having entered all the data of example 1 (NODES=4 and BRANCH=5 see the USER MANUAL) the program displays DONE
When I press the F key to enter the Initial Frequency the program displays 1. instead of FMIN=? and it gets stuck here.
Can anyone tell me where I'm wrong (For example in using the ROM2RAW utility? or the HP41UC utility? options? ) or if the Circuit Analysis Pac module can't be imported for some reason I don't know?
Thanks in advance for your help
Paolo
Find all posts by this user
Quote this message in a reply
10-30-2023, 12:51 AM
Post: #2
RE: Circuit Analysis Pac Module Import to V41 Error Program
(10-30-2023 12:46 AM)plore90 Wrote:  When I press the F key to enter the Initial Frequency the program displays 1. instead of FMIN=? and it gets stuck here.

Are you in USER mode when you press the F key ? If not, probably you should.

V.

  
All My Articles & other Materials here:  Valentin Albillo's HP Collection
 
Visit this user's website Find all posts by this user
Quote this message in a reply
10-30-2023, 01:06 AM
Post: #3
RE: Circuit Analysis Pac Module Import to V41 Error Program
(10-30-2023 12:51 AM)Valentin Albillo Wrote:  
(10-30-2023 12:46 AM)plore90 Wrote:  When I press the F key to enter the Initial Frequency the program displays 1. instead of FMIN=? and it gets stuck here.

Are you in USER mode when you press the F key ? If not, probably you should.

V.

Hi Valentin, I confirm that I am in USER mode..
Find all posts by this user
Quote this message in a reply
10-30-2023, 02:09 AM
Post: #4
RE: Circuit Analysis Pac Module Import to V41 Error Program
(10-30-2023 01:06 AM)plore90 Wrote:  
(10-30-2023 12:51 AM)Valentin Albillo Wrote:  Are you in USER mode when you press the F key ? If not, probably you should.

Hi Valentin, I confirm that I am in USER mode..

Too bad, it was a good try.

Come to this, I'd suggest that you list the program as stored in V41 and the program as stored in the Circuit Analysis Pac and carefully compare both listings to try and find where they do differ. Once the differences are found it would be easier to spot what is amiss.

V.

  
All My Articles & other Materials here:  Valentin Albillo's HP Collection
 
Visit this user's website Find all posts by this user
Quote this message in a reply
10-30-2023, 03:20 AM
Post: #5
RE: Circuit Analysis Pac Module Import to V41 Error Program
(10-30-2023 12:46 AM)plore90 Wrote:  When I press the F key to enter the Initial Frequency the program displays 1. instead of FMIN=? and it gets stuck here.

You may have already something assigned to the F key (x<>y). Press and hold on the F key: does it show XEQ F? If not you need to un-assign the F key by pressing f ASN ALPHA ALPHA x<>y

Btw, there is a much simpler way to load CIRCUIT.MOD into V41: V41 comes with a large collection of .MOD files, to load them in the current V41 configuration press File>Edit then Add and select the .MOD file you want to load, press Open and OK and you're done.
Find all posts by this user
Quote this message in a reply
10-30-2023, 01:27 PM
Post: #6
RE: Circuit Analysis Pac Module Import to V41 Error Program
(10-30-2023 03:20 AM)Didier Lachieze Wrote:  
(10-30-2023 12:46 AM)plore90 Wrote:  When I press the F key to enter the Initial Frequency the program displays 1. instead of FMIN=? and it gets stuck here.

You may have already something assigned to the F key (x<>y). Press and hold on the F key: does it show XEQ F? If not you need to un-assign the F key by pressing f ASN ALPHA ALPHA x<>y

Btw, there is a much simpler way to load CIRCUIT.MOD into V41: V41 comes with a large collection of .MOD files, to load them in the current V41 configuration press File>Edit then Add and select the .MOD file you want to load, press Open and OK and you're done.
Hello Valentin,Didier
the purpose of my attempt is to understand if it is possible to import the software of a module file (ex. CIRCUIT.MOD) into a real HP-41CX.
Analyzing the 41uc listing CIR_ANL_1A_.raw -> CIR_ANL_1A_.TXT I can see that it stops at the first .END. and leaves out the LBL F statement as well.
I imported the output file of rom2raw.exe =>CIR_ANL_1A_.raw into FREE42 emulator to see if it works with FREE42, but having never used this emulator, I don't know how to execute the corresponding key press label F of the 41CX in to free42 as the hp-42s keyboard has different labels than the 41cx (A,a,B,b,C,c...F,f..)
Find all posts by this user
Quote this message in a reply
10-30-2023, 01:45 PM
Post: #7
RE: Circuit Analysis Pac Module Import to V41 Error Program
(10-30-2023 01:27 PM)plore90 Wrote:  I imported the output file of rom2raw.exe =>CIR_ANL_1A_.raw into FREE42 emulator to see if it works with FREE42, but having never used this emulator, I don't know how to execute the corresponding key press label F of the 41CX in to free42 as the hp-42s keyboard has different labels than the 41cx (A,a,B,b,C,c...F,f..)

In Free42 check [LCLBL] in the [MODES] menu: [Shift] [+/-] [down_arrow] [XEQ]
then open the custom menu: [Shift] [2]
and you have the labels A B C D E on the display corresponding to the first key row of the 41. To see the second row with the F label press [down_arrow]
Find all posts by this user
Quote this message in a reply
10-30-2023, 02:55 PM
Post: #8
RE: Circuit Analysis Pac Module Import to V41 Error Program
(10-30-2023 01:45 PM)Didier Lachieze Wrote:  
(10-30-2023 01:27 PM)plore90 Wrote:  I imported the output file of rom2raw.exe =>CIR_ANL_1A_.raw into FREE42 emulator to see if it works with FREE42, but having never used this emulator, I don't know how to execute the corresponding key press label F of the 41CX in to free42 as the hp-42s keyboard has different labels than the 41cx (A,a,B,b,C,c...F,f..)

In Free42 check [LCLBL] in the [MODES] menu: [Shift] [+/-] [down_arrow] [XEQ]
then open the custom menu: [Shift] [2]
and you have the labels A B C D E on the display corresponding to the first key row of the 41. To see the second row with the F label press [down_arrow]
Hello Didier,
Thanks for the explanation, but also in free42 pressing F gives me Label not Found!. I think there is a problem using ROM2RAW.exe
The output .RAW file loses some lines of instructions including LBL F...
This is the output from ROM2RAW
C:\41UC>rom2raw circuit.mod
Input file: circuit.mod
Output file: CIR_ANL_1A_.raw
ROM Name: CIR ANL 1A
ROM Size: 4096 (0x1000), 1 page
--- Page 0 ---
ROM Number: 6
64 functions (XROM 06,00 - 06,63)
XROM 06,00: dummy entry CIR ANL 1A
XROM 06,01: user code "GNAP"
XROM 06,02: user code "*J"
XROM 06,03: user code "PHASE"
XROM 06,04: user code "H<F>dB"
XROM 06,05: user code "H<F>"
XROM 06,06: user code "GM="
XROM 06,07: user code "R="
XROM 06,08: user code "L="
XROM 06,09: user code "C="
XROM 06,10: user code "LNAP"
XROM 06,11: user code "RS"
XROM 06,12: user code "RP"
XROM 06,13: user code "CS"
XROM 06,14: user code "CP"
XROM 06,15: user code "LS"
XROM 06,16: user code "LP"
XROM 06,17: user code "TF"
XROM 06,18: user code "GY"
XROM 06,19: user code "LCS"
XROM 06,20: user code "LCP"
XROM 06,21: user code "LINE"
XROM 06,22: user code "STUBO"
XROM 06,23: user code "STUBS"
XROM 06,24: user code "ICIS"
XROM 06,25: user code "VCIS"
XROM 06,26: user code "RS="
XROM 06,27: user code "LS="
XROM 06,28: user code "CS="
XROM 06,29: user code "LCS="
XROM 06,30: user code "LINE="
XROM 06,31: user code "ICIS="
XROM 06,32: user code "VCIS="
XROM 06,33: user code "TF="
XROM 06,34: user code "GY="
XROM 06,35: user code "RP="
XROM 06,36: user code "LP="
XROM 06,37: user code "CP="
XROM 06,38: user code "LCP="
XROM 06,39: user code "STUBO="
XROM 06,40: user code "STUBS="
XROM 06,41: user code "PV"
XROM 06,42: user code "PÔêíV"
XROM 06,43: user code "PVdB"
XROM 06,44: user code "ÔêíV2/V1"
XROM 06,45: user code "V2/1dB"
XROM 06,46: user code "V2/V1"
XROM 06,47: user code "PI"
XROM 06,48: user code "PÔêíI"
XROM 06,49: user code "PIdB"
XROM 06,50: user code "ÔêíI2/I1"
XROM 06,51: user code "I2/1dB"
XROM 06,52: user code "I2/I1"
XROM 06,53: user code "PZIN"
XROM 06,54: user code "PÔêíZIN"
XROM 06,55: user code "ZIN"
XROM 06,56: user code "ÔêíZIN"
XROM 06,57: user code "PP2/P1"
XROM 06,58: user code "P2/P1"
XROM 06,59: user code "ALL"
XROM 06,60: user code "*AN"
XROM 06,61: user code "*MAT*"
XROM 06,62: user code "*C*"
XROM 06,63: user code "*C+"

I import the output file CIR_ANL_1A_.raw into free42, run it, follow your suggestion and when afterwards displayed DONE, press F and give me Label not Found...
It is clear that in the rom2raw passage the .raw file is corrupt!
Find all posts by this user
Quote this message in a reply
10-30-2023, 03:15 PM (This post was last modified: 10-30-2023 03:43 PM by Didier Lachieze.)
Post: #9
RE: Circuit Analysis Pac Module Import to V41 Error Program
There may be an issue because the user code in this module doesn’t start with a global label, instead it starts with :
Code:
01 LBL 70

Just to check, can you type GTO "GNAP " and then move to program mode. The program pointer should be at :
Code:
502 LBL"GNAP"

EDIT: here is a .raw file I've created in V41 after loading CIRCUIT.MOD and COPYing it RAM, by using File>Put User Code ... and selecting the label *J which is the first global label in the CIRCUIT module.

.zip  circuit.zip (Size: 1.07 KB / Downloads: 2)

EDIT2: this user program in RAM works correctly if the CIRCUIT rom is plugged, but fails when removing the MOD file because it contains calls to the global labels in the ROM which are not translated by COPY. So this solution cannot be used to create a standalone .raw file.
Find all posts by this user
Quote this message in a reply
10-30-2023, 07:35 PM
Post: #10
RE: Circuit Analysis Pac Module Import to V41 Error Program
(10-30-2023 03:15 PM)Didier Lachieze Wrote:  There may be an issue because the user code in this module doesn’t start with a global label, instead it starts with :
Code:
01 LBL 70

Just to check, can you type GTO "GNAP " and then move to program mode. The program pointer should be at :
Code:
502 LBL"GNAP"

EDIT: here is a .raw file I've created in V41 after loading CIRCUIT.MOD and COPYing it RAM, by using File>Put User Code ... and selecting the label *J which is the first global label in the CIRCUIT module.


EDIT2: this user program in RAM works correctly if the CIRCUIT rom is plugged, but fails when removing the MOD file because it contains calls to the global labels in the ROM which are not translated by COPY. So this solution cannot be used to create a standalone .raw file.

At this point I believe that not all application pac modules can be decoded in RAW format, thanks to all those who gave me their precious help!!!
Paolo
Find all posts by this user
Quote this message in a reply
10-30-2023, 08:37 PM
Post: #11
RE: Circuit Analysis Pac Module Import to V41 Error Program
(10-30-2023 07:35 PM)plore90 Wrote:  At this point I believe that not all application pac modules can be decoded in RAW format, thanks to all those who gave me their precious help!!!
Paolo

First point: only user code programs in application pac modules can be converted to raw, not mcode programs.

Second point: the issue with rom2raw not converting the user code instructions before the first global label may be fixed by Thomas Okken to get the complete program in raw format.

But even if you get a .raw file, it doesn't mean that it will fit in the HP-41CX RAM, and this is the case for the Circuit module: it contains two user code programs : GNAP (651 steps) and LNAP (856 steps) with calls between these two programs and they don't fit together in the 41CX RAM. So it's not possible to import the programs from the Circuit module which was your goal.
Find all posts by this user
Quote this message in a reply
10-30-2023, 09:51 PM
Post: #12
RE: Circuit Analysis Pac Module Import to V41 Error Program
(10-30-2023 08:37 PM)Didier Lachieze Wrote:  
(10-30-2023 07:35 PM)plore90 Wrote:  At this point I believe that not all application pac modules can be decoded in RAW format, thanks to all those who gave me their precious help!!!
Paolo

First point: only user code programs in application pac modules can be converted to raw, not mcode programs.

Second point: the issue with rom2raw not converting the user code instructions before the first global label may be fixed by Thomas Okken to get the complete program in raw format.

But even if you get a .raw file, it doesn't mean that it will fit in the HP-41CX RAM, and this is the case for the Circuit module: it contains two user code programs : GNAP (651 steps) and LNAP (856 steps) with calls between these two programs and they don't fit together in the 41CX RAM. So it's not possible to import the programs from the Circuit module which was your goal.

Thanks Didier,
your explanation in the 2 points was very clear and exhaustive, you made me understand perfectly the problems that exist in achieving my goal...
Kings regards
Paolo
Find all posts by this user
Quote this message in a reply
Post Reply 




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