Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!gem.mps.ohio-state.edu!apple!claris!sts!sts!galvey From: galvey@sts.sts.COM Newsgroups: comp.sys.amiga Subject: Re: Basic program questions Message-ID: <67100005@sts> Date: 4 Oct 89 23:30:19 GMT References: <759@nigel.udel.EDU> Lines: 48 Nf-ID: #R:nigel.udel.EDU:759:sts:67100005:000:2250 Nf-From: sts.sts.COM!galvey Oct 4 15:31:00 1989 /* 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! | =============================================================================