Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!cbosgd!ihnp4!inuxc!pur-ee!pucc-j!pucc-h!ags From: ags@pucc-h (Dave Seaman) Newsgroups: net.micro.apple Subject: Re: Apple Pascal & Assembly - Expert Help Needed Message-ID: <2877@pucc-h> Date: Mon, 9-Jun-86 10:30:44 EDT Article-I.D.: pucc-h.2877 Posted: Mon Jun 9 10:30:44 1986 Date-Received: Thu, 12-Jun-86 03:04:35 EDT References: <2236@uwmacc.UUCP> Reply-To: ags@pucc-h.UUCP (Dave Seaman) Distribution: net Organization: Purdue University Computing Center Lines: 30 In article <2236@uwmacc.UUCP> dan@uwmacc.UUCP (dan jatnieks) writes: > 1. I haven't found a good way to share data (labels) between two or more > ".PROC"'s. Supposedly, using ".DEF" and ".REF" will make a label > globally available, but I had problems with this. If the routine in > which the label is defined is *not* the first routine (sequentially) that > uses it it seemed to assemble and link o.k., but it wouldn't run > correctly. I have not run into this, even though I have used quite a few .DEFs and .REFs. Are you using version 1.2? I seem to recall there was a bug in the version 1.1 linker that might explain this. > 2. I tried to write a Pascal program that would test all of the assembly > routines that I wrote. In this program all the assembly routines were > declared as "EXTERNAL". Compiling this program kept giving me a very > cryptic "Stack Overflow" message followed by a reboot. There are two solutions to this: use the compiler swapping {$S+} option, or (under version 1.2) use the system configured for 128K. Note the amount of free space reported by the compiler at the beginning of each procedure. If that number gets too small, a stack overflow is likely. > 3. Does anyone know of a GOOD technical manual about Apple Pascal and using > assembler from it? I am not aware of any better source than the Apple documentation. Sorry. -- Dave Seaman pur-ee!pucc-h!ags "I wish I had time to explain Dimensional Transcendentalism!"