C (48/254)

From:Olaf Barthel
Date:24 Apr 00 at 12:47:57
Subject:Re: execPrivate

On Apr 22 Paul (Paul Hill) wrote:

> On 21-Apr-00 19:22:23, DenJS wrote:
> >Hello,
>
> >Anyone can send me full information about all 'execPrivate??' functions?
> >Now i know about only one of them and i use it... it's kewl :) maybe others
> >functions also good? :)
>
> >My little example of usage execPrivate14 :)

This is not execPrivate14() but execPrivate13(). execPrivate14() will read
the Gayle chip's ID register, i.e. check if the Gayle chip is present.

> > move.l $4.W,A6
> > move.b #4,D0
> > jsr $fcd6(A6)
> > bsr.b go
> > dc.b "Hello!",10,0
> >go move.l (a7)+,d1
> > jmp (-948.w,d0.l)
>
> >:-)
>
> It just crashes causes a software failure here. What's it meant to do?

It opens dos.library and does something with the string provided.
The "kewl" thing about this trick is to open a library by means of a
library number (#4) instead of providing that library's name (this
works like OldOpenLibrary() but without providing a name). Yes,
that's what we all always wanted, isn't it?



Home: Olaf Barthel, Brabeckstrasse 35, D-30559 Hannover
Net: olsen@sourcery.han.de (Home), olsen@logicalline.com (Work)

------------------------------------------------------------------------
INSTANT RESEARCH. Check out Hoover's Online: Info on 50,000+
companies, 300 industries, IPO coverage, stock information &
more. Click here!
http://click.egroups.com/1/3410/1/_/451227/_/956577571/
------------------------------------------------------------------------