CompuServe Thread

#Closing Arp Library

4 messages in this thread
#363From: Thomas HoladaySep 13, 1990 7:15 AM
I'm a little puzzled about closing the Arp library after I've opened it. Assuming the library handle is in LibHdl, I'd normally say move.l LibHdl,a1 move.l 4,a6 jsr _LVOCloseLibrary(a6) The Arp manual's examples keep refering to _LVOCloseLibrary(ArpLib), though. Does that mean I do something like move.l ArpHdl,a1 jsr _LVOCloseLibrary(a1) That can't be right, can it? THol() { cout << "Sir, I exist." ;}
#371From: John DraperSep 13, 1990 12:36 PM
Thol, Are you sure the reference is to _LVOCloseLibrary(ArpBase) ? I looked through the manual, and find references to CloseLibrary(ArpBase), which is, of course, the C syntax. The example you gave, using ExecBase as the offset, is correct. -larry
#380From: Thomas HoladaySep 13, 1990 3:50 PM
I see, I had confused the C CloseLibrary(arg) with the Asm offset notation. Thanks!
#557From: Henry LowengardSep 16, 1990 9:03 PM
Tom: Any assembler questions – feel free to call me. Usually, one makes a macro to call "rom kernal" routines to insure a6 is set up and to keep the line count down. with macros, this would be: move.l _ArpBase,a1 CallSys CloseLibrary or something like that. assemblator jhhl