Post Reply 
Text files import/export on HP-41CX, HP-IL, Mac OS
08-29-2016, 02:54 PM
Post: #4
RE: Text files import/export on HP-41CX, HP-IL, Mac OS
Here is an alternative to import text files using the DOSLINK device.
Importing text data from an external device is easy when the text strings are less than 24 characters (such as a list of numbers) but for managing text strings larger than 24 characters, you need the Extended I/O ROM and the INACL function that uses the flag 17 as a end-of-line indication as is doing GETREC.

Here is a small piece of code that may be a good starting point for you (== not extensively tested).
To use it (in AUTOIO), set DOSLINK to point to your text file. Use an empty line as a end-of-file indication in your file.
The ASCII file in the 41C X-M must be existing.

Code:

 LBL "INFLAS"
  0  SEEKPTA
  "DOSLINK"  FINDID  SELECT
  CLRDEV
LBL 01
  INACL  ATOX
  ALENG  X=0?  GTO 09
  APPREC
  GTO 03
LBL 02
  INACL  ATOX
  APPCHR
LBL 03
  FS? 17  GTO 02
  GTO 01
LBL 09
  CLA 
  END
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Text files import/export on HP-41CX, HP-IL, Mac OS - J-F Garnier - 08-29-2016 02:54 PM



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