The Museum of HP Calculators

HP Forum Archive 20

[ Return to Index | Top of Index ]

[HP-75] Cat$ doubt
Message #1 Posted by robertoataulfo on 3 Dec 2011, 6:32 p.m.

What is the command I use to access the file names from the Digital Tape Drive equal to the command x$=cat$(n)?
Thank's
      
Re: [HP-75] Cat$ doubt
Message #2 Posted by Paul Berger (Canada) on 3 Dec 2011, 6:55 p.m.,
in response to message #1 by robertoataulfo

The example in the HPIL manual is F$=CAT$(2,":MASSMEM") which would set F$ equal to the the second file name on the mass storage device MASSMEM.

            
Re: [HP-75] Cat$ doubt
Message #3 Posted by robertoataulfo on 3 Dec 2011, 7:22 p.m.,
in response to message #2 by Paul Berger (Canada)

It did not work
In which the manual page and I saw this information.

F$=CAT$(2,":MASSMEM") when I run it says that is missing a parentheses after the comma. :-(

Edited: 3 Dec 2011, 7:25 p.m.

                  
Re: [HP-75] Cat$ doubt
Message #4 Posted by Paul Berger (Canada) on 3 Dec 2011, 8:18 p.m.,
in response to message #3 by robertoataulfo

Yes sorry need to learn how to read, that is the syntax for a 71B, trying to figure out what will work on a 75

                  
Re: [HP-75] Cat$ doubt
Message #5 Posted by Howard Owen on 3 Dec 2011, 8:25 p.m.,
in response to message #3 by robertoataulfo

This thread has discussions on ways to get the HP-75 more functional as an HP-IL controller.

Edited: 4 Dec 2011, 9:02 a.m. after one or more responses were posted

                        
Re: [HP-75] Cat$ doubt
Message #6 Posted by Paul Berger (Canada) on 3 Dec 2011, 8:45 p.m.,
in response to message #5 by Howard Owen

Seems a colon got dropped from you link I think you meant http://www.hpmuseum.org/cgi-sys/cgiwrap/hpmuseum/archv015.cgi?read=77316

                              
Re: [HP-75] Cat$ doubt
Message #7 Posted by Howard Owen on 4 Dec 2011, 9:03 a.m.,
in response to message #6 by Paul Berger (Canada)

Thanks. I've corrected the link.

                  
Re: [HP-75] Cat$ doubt
Message #8 Posted by Paul Berger (Canada) on 3 Dec 2011, 8:38 p.m.,
in response to message #3 by robertoataulfo

Ok its seems that you need an IO ROM for this. In the IO ROM there is a function TCAT$. For example my 75C with an IO ROM it auto assigns my diskette drive to be :M1 on the command line I enter F$=TCAT$(':M1',2) @ DISP F$ and it displays the file name of the second file on the diskette in the drive. This should work the same way for a tape drive, I would try it but since getting a diskette drive I don't use my tape drives anymore and have cleared all of my tapes.

If you don't have an IO ROM there may be a LEX file available that provides this function, or you could read and parse the raw directory block from the tape.

Edited: 3 Dec 2011, 8:51 p.m. after one or more responses were posted

                        
Re: [HP-75] Cat$ doubt
Message #9 Posted by robertoataulfo on 3 Dec 2011, 9:10 p.m.,
in response to message #8 by Paul Berger (Canada)

What LEX file ?
                              
Re: [HP-75] Cat$ doubt
Message #10 Posted by Paul Berger (Canada) on 3 Dec 2011, 9:31 p.m.,
in response to message #9 by robertoataulfo

I don't know sorry, I said there MAY be one, not that I knew of one. I would like to catalog all the LEX files on the various exchange diskettes made available on this site, but so far I have not got around to it, it is easy using the HELP LEX to find the keywords, but sometimes figuring out the syntax to go with the keywords is difficult.


[ Return to Index | Top of Index ]

Go back to the main exhibit hall