Path: utzoo!utgpu!water!watmath!clyde!att!mtunx!rutgers!cmcl2!nrl-cmf!ames!xanth!maurice From: maurice@xanth.cs.odu.edu (Dale Ross Maurice) Newsgroups: comp.lang.pascal Subject: Re: Procedures or Functions as parameters Keywords: Has anyone done it in TP4? Message-ID: <5491@xanth.cs.odu.edu> Date: 8 Jun 88 15:52:47 GMT References: <213@lafcol.UUCP> <12387@cci632.UUCP> Reply-To: maurice@xanth.UUCP (Dale Ross Maurice) Organization: Old Dominion University, Norfolk Va. Lines: 24 In article <12387@cci632.UUCP>: >would be necessary. the procedure "call" would be an assembly macro (inline) >which T$ supports (about time!). Although I don't have specific code for >"call", on an 80x86 it could be done with: > CALL DWORD PTR [BP+{offset of A on stack}] > This is off the top of my head, so don't pound on me if it is wrong. The easy way is as such: (This assumes no passing of varibles of course) Var ProcPtr : Pointer; . . ProcPtr := @ProcName; Inline($FF/$1E/ProcPtr); { Call Far [ProcPtr] } . . [Any responses to this will have to wait 3 weeks. It's vacation time again!] -- uslessnessuselessnessuselessnessuselessnessuselessnessuselessnessuselessnesusel * Dale Ross Maurice UUCP: maurice@xanth.UUCP e * Old Dominion University or: ...!uunet!xanth!maurice s s BIRTHRIGHT PARTY IN SUPPORT New ARPA: maurice@cs.edu.odu s s OF THE SPACE EFFORT Old ARPA: maurice%xanth.UUCP@SUN.COM n enesselesussensselesussensselesussensselesussensselesussensselesussensselesusse