Path: utzoo!utgpu!water!watmath!clyde!rutgers!umd5!purdue!i.cc.purdue.edu!j.cc.purdue.edu!pur-ee!uiucdcs!uxc.cso.uiuc.edu!hamilton From: hamilton@uxc.cso.uiuc.edu Newsgroups: comp.sys.amiga Subject: Re: amiga.lib calls... Message-ID: <172200100@uxc.cso.uiuc.edu> Date: 11 Feb 88 22:16:00 GMT Lines: 27 Nf-ID: #R:<8802091727.AA09035@jade.berkele:-38:uxc.cso.uiuc.edu:172200100:000:1189 Nf-From: uxc.cso.uiuc.edu!hamilton Feb 11 16:16:00 1988 BBOURBIN@UMDD.BITNET asks: > > Does anyone know how to all routines in the amiga.lib library from >assembly language? I know that the parms are passed on the stack but what >is the procedure name that has to be called; is it in the form "LVOCreatPort" >or is it just "CreatePort" or "_CreatePort" and does it have to be XREF'ed at >the start of the program? > steveb@cbmvax replies: > Yes, just prefix whatever you want to call with '_LVO' ie. _LVOAllocMem. > You should XREF all library calls you use in any given module. i think the original question was about the exec support functions (CreatePort, DeletePort, etc), which are C routines, and not library members - there aren't any LVO's for them. i haven't tried to use them from assembler, so i'm just guessing: use XREF's, prepend '_' to the name, push the args in right-to-left order, JSR to the function, then "pop" the args back off the stack. wayne hamilton U of Il and US Army Corps of Engineers CERL UUCP: {ihnp4,seismo,pur-ee,convex}!uiucuxc!hamilton ARPA: hamilton@uxc.cso.uiuc.edu USMail: Box 476, Urbana, IL 61801 CSNET: hamilton%uxc@uiuc.csnet Phone: (217)333-8703 CIS: [73047,544] PLink: w hamilton