#Closing Arp Library
4 messages in this thread
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." ;}
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
I see, I had confused the C CloseLibrary(arg) with the Asm offset notation.
Thanks!
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