Emu41



#2

Hi all, I was given this small program for the Emu41, by the creater of the Emu41 to read numbers from an ascii text file into the main memory of the Emu41.

34*LBL IMPORT

35 AUTOIO

36 "DOSLINK"

37 FINDID

38 SELECT

39 CLRDEV

40 0

41*LBL 04

42 INA

43 ALENG

44 X=0?

45 GTO 05

46 AVIEW

47 RDN

48 ANUM

49 STO IND Y

50 RDN

51 1

52 +

53 GTO 04

54*LBL 05

55 RTN

56 END


This program works real nice.

Does any one know how to change it to read the numbers from the ascii file directly into an extended memory file?

Thank you in advance.

Rich


#3

You have to replace the line 49 STO IND Y with SAVEX, and create the extended memory file before or at the beginning of IMPORT, with something like that:

"MYFILE"
50
CRFLD
0
SEEKPTA


#4

Thank you so much J-F for the help.
I have one more question for you please.
Is there a way to list the numbers in the extended memory data file with out putting them back into main memory?

Thanks
Rich


#5

Well, you can use the GETX function to get the numbers one by one in X register:

LBL VNUM    (view numbers)
"MYFILE"
0
SEEKPTA
50 (for instance)
LBL 01
GETX
VIEW X
RDN
DSE X
GTO 01


#6

Thank you for the help.
I am writing a program to have my HP41cx with the help of my HP7470a plotter with the plotter module and my HP9114B disk drive to draw vector based maps of my state of Nevada. Things like the state boundary, the country boundaries, some of the major roads, and the major rivers and streams. The location of most of the cities and towns in Nevada. All the coordinates are in degrees of Latitude and Longitude. I just wanted to show what the little HP41cx can do in the field of Computer Mapping.

Thanks again for your help.
Rich


#7

Sounds like a nice project, make sure you post the maps when complete - I'm sure you'll enjoy the work.


#8

Thank you for your interest in the project. I have only had some experience in programing in 1977 Fortran. I must say I like programing the HP41cx. Some of my project data files are quite large. For example, highway I80 across northern Nevada has about 1,800 points to plot. I have to break it up into several files of 120 points. I also have to write the program in such a way that I use several subroutines in which I call them up and use them, then delete them form the main program to save memory.

Rich


Possibly Related Threads...
Thread Author Replies Views Last Post
  EMU41; Dosbox on Linux; Excruciatingly sloooow Geir Isene 9 470 12-01-2013, 05:10 PM
Last Post: Geir Isene
  EMU41: A Little Late to The Party, but Loving It! Les Wright 3 185 05-09-2012, 03:28 PM
Last Post: Christoph Klug
  41CL & EMU41 & IL2000 interface system Christoph Klug 0 93 03-22-2012, 05:23 PM
Last Post: Christoph Klug
  SOLVED !!! (was : Running EMU41 16-Bit MS-DOS Programs on new 64-Bit Windows 7 Laptop) Antoine M. Couëtte 6 257 01-04-2012, 04:16 AM
Last Post: Antoine M. Couëtte
  Unable to start and run EMU41 on new 64-bit Processor Laptop running with Windows 7 Antoine M. Couëtte 6 297 12-18-2011, 10:23 AM
Last Post: Massimo Gnerucci (Italy)
  EMU41 Richard L. Taylor 2 142 06-22-2011, 05:37 AM
Last Post: Mike (Stgt)
  Emu41 Richard L. Taylor 5 225 05-31-2011, 06:42 PM
Last Post: Richard L. Taylor
  iDOS Lives! Get it while you can (IOW, EMU71/EMU41 on iPad/iPhone)! Egan Ford 32 913 01-22-2011, 11:30 PM
Last Post: Howard Owen
  ILPer/Emu41/Transferring Files Jeff Davis 5 260 05-02-2010, 01:10 PM
Last Post: Egan Ford
  EMU41 2.50 released as open source! Egan Ford 2 134 03-03-2010, 08:17 PM
Last Post: Howard Owen

Forum Jump: