[comp.sys.atari.st] Some of the mysteries of Pexec solved

david@looking.UUCP (01/09/87)

Well, after a bit of trial and error hacking, I got Pexec's load-no-go
and just-go modes to work.  Load-No-Go takes the same parms are regular
Pexec  (mode, path, tail, env).  Just-Go does not work as advertised
in the latest GEMDOS doc's which state that the parms are
(mode, who_cares, who_cares, basepage_addr), with basepage_addr
as returned by load-no-go.

Use of this calling sequence produced rather nice looking crashes, 
but little else.  Since Atari documented the middle two parameters
as being unimportant, I changed the call to:
 
Pexec(mode = 4, basepage, basepage, basepage),

and lo and behold, it worked !  Isn't GEM Documentation wonderful ?
I don't know which is the needed pointer and which aren't, and I 
don't particularly want to take the extra time to figure 
it out as getting this thing to work has taken too long anyway!

David Rowley
Looking Glass Software
Waterloo, Ontario