Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!mcsun!sunic!tut!hydra!hylka!pkontkanen From: PKONTKANEN@cc.helsinki.fi Newsgroups: comp.sys.amiga Subject: Message-ID: <1010@cc.helsinki.fi> Date: 20 Oct 89 11:11:18 GMT References: <759@nigel.udel.EDU> <67100005@sts> Lines: 47 In article <67100005@sts>, galvey@sts.sts.COM writes: > /* Written by jwhitman@stl-06sima.army.mil */ > /* ---------- "Basic program questions" ---------- */ > > > >[Window stuff deleted] > > > >Different subject! The program I am working on is too large to load > >without increasing the stack and data areas with the clear command. > >I have put the clear command in the top of the program but as I suspected > >it made no difference because it was not executed until the program was > >fully loaded. That prevents me from running the program from an icon. > >If I start up BASIC and issue the clear command in immediate mode I can > >load and run the program just fine. How can I start up BASIC from an > >icon and get it to recognize the increased space? If I cannot do that > >then perhaps this is a good candidate for CHAIN or MERGE. Any ideas?? > > > I had the same problem when a program I was working on got to be larger than > 25K. After a while I figured out what to do to make it run. I simply made a > "loader" program (it runs when you click the icon). All the LOADER does is > CLEAR enough space (using the CLEAR command) and then loads & runs the "MAIN" > program. I don't recall what command is used to load & run the main program. > > One thing to watch out for - I made a custom ICON for the loader program (it > looked like a business form), and it got wiped out whenever I did an EDIT > after running the program (BASIC EDITOR replaced loader.info instead of > main.info). I finally made a copy of the ICON & copied it when I was done > editing for the day. > > Another possible option is to get a Basic compiler! I have thought about this > but can't seem to get motivated since I started looking at C. > > >[more stuff deleted] > > >Thanks for your patience and for the usual excellent response. > > > >Regards, Jerry. > > Hope I have helped. > > Greg A. > > ============================================================================= > |Greg Alvey | Internet: galvey@sts.sts.COM | > |Semiconductor Test Solutions | Phone : (408) 727-2885 (work) | > |4101 Burton Dr. | | > |Santa Clara, CA 95054 | When all else fails, read the instructions! | > =============================================================================