Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!swrinde!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!eagle!news From: vvkmj@spica.lerc.nasa.gov (Keith Jackson) Newsgroups: comp.lang.pascal Subject: Passing parameters on the stack in tp5.x Message-ID: <1991Jun18.201450.7710@eagle.lerc.nasa.gov> Date: 18 Jun 91 20:14:50 GMT Sender: news@eagle.lerc.nasa.gov Organization: NASA Lewis Research Center Lines: 21 I am writing a program that will call a function via its address (don't ask why trust me). For example: ptr:=addr(sin); . . . function sin(x:real) : real; . . . I think I know how to call the function, but HOW do I include the parameters. My idea is to place the parameters on the stack, then call the function. Any help would be appreciated! -- ----------------------------------------------------------------------------- Keith Jackson | phone: 216-433-5105 or Sverdrup Technology, Inc | 216-891-2946 NASA Lewis Research Center | email: vvkmj@spica.lerc.nasa.gov