[comp.sys.mac.programmer] Pascal Inline Functions

jackiw@cs.swarthmore.edu (Nick Jackiw) (05/31/90)

A few questions about generic inline functions in Pascal:

-Can they trash A0,A1/D0-D2?

-Is there any way I can access global variables (i. e. get their address)

    inline $a9e3,@myVar,$32f0;

 doesn't make it past the syntax analyzer.

-Failing the above, is there anyway I can link an external (i. e. MPW-written)
function as *inline* (so that I'm not generating inter-segment jumps when
I access the function in the middle of a tight loop)?

All of this relates to the 32K array limit problem. I just want to write a
little function, myArray(index:integer) which returns a ptr to an element
of my array.

---

Thankyouthankyouthankyouthankyou.




--
jackiw@cs.swarthmore.edu	Visual Geometry Project
jackiw@swarthmr.bitnet		Swarthmore, PA 19081-1989
Applelink: D3717		"A fool and his gold are soon partying."