The Museum of HP Calculators

HP Forum Archive 13

[ Return to Index | Top of Index ]

41 MCODE Question
Message #1 Posted by 聲gel martin on 1 Oct 2003, 5:42 a.m.

Hello fellow MCoders, (you know who you are...)

This is really a very simple question. I just need to know the entry point for a subroutine in the 41 CX. It is part of the X-functions, but I don't have the VASM listings for it.

The routine is called "RSTKCA", and as such it should be listed in the VASMS.

I know where it's located in the X-Functions Rev. C module: at address "PA06" (P is the page number). Of course that's different from the CX, as HP moved the entry points when building the bank-switched CX-Xfunct.

Can you help?

Best, 簍.

      
Re: 41 MCODE Question
Message #2 Posted by Mike (Stgt) on 2 Oct 2003, 9:04 a.m.,
in response to message #1 by 聲gel martin

In XFunc 1C is at pA06 a call to "main frame" 0952.

FA06 149 *          
FA07 024 NCXQ   0952 =ENCP00

ENCP00 is 'Enable chipset 0' if I remember correctly. Yes, look here:

0952 046 C=0    X
0953 3F0 PERSLCT 
0954 270 RAMSLCT 
0955 3E0 RTN     
That disables peripherals as there is no peripheral 00, selects the 'first page' of RAM (stack, alpha, status) and returns.

What are you doing BTW???

Ciao.....Mike

            
Re: 41 MCODE Question
Message #3 Posted by 聲gel Martin on 2 Oct 2003, 4:28 p.m.,
in response to message #2 by Mike (Stgt)

Yes, but later on there's code to reset the key assignement bits on the keyboard keys.

This is part of a "Reactivate Local assignments" routine, companion to a "Suspend Local assignments" one.

I got it working with CV and X-functions, but it flunks on the CX.

Now, do you know where (at which address) is that entry on the CX??

Is it possible that HP never made the CX VASM listings available??

Best, AM.

                  
Re: 41 MCODE Question
Message #4 Posted by Chris Catotti (Florida) on 3 Oct 2003, 5:23 p.m.,
in response to message #3 by 聲gel Martin

I could dissasemble any chunk of code you want.

I have not played with mcode much yet. If you can tell me what exactly tto look for, or if you want me to run a "ticker tape" printout I could.

I was contemplating connecting up the disassembler (HEPAX is my favorite, an HP-IL Module, an HP-IL Video Display, and the family VCR and see if I could make a useable video-tape dump of a module.

Let me know ...

Chris.

                        
Re: 41 MCODE Question
Message #5 Posted by 聲gel Martin on 4 Oct 2003, 3:07 a.m.,
in response to message #4 by Chris Catotti (Florida)

Chris, thanks for your offer.

I ended up copying the code stream from the x-functions module directly into my function. Now it works for both the CX and CV w/ X-fct. It took a bit more of space, but I had plenty left, so I'm happy.

Yeah, the HEPAX disassembler is also my favorite. In fact, I've always contended that the HEPAX module (device more properly) is the holy grail for the 41 system...

Hey, let me know if you want sponsors for your video! It sure sounds like a tremendous idea :-?).

Best, AM


[ Return to Index | Top of Index ]

Go back to the main exhibit hall