Amiga.org

Operating System Specific Discussions => Amiga OS => Amiga OS -- Development => Topic started by: pjhutch on February 26, 2005, 12:02:11 PM

Title: loadwb command
Post by: pjhutch on February 26, 2005, 12:02:11 PM
Does anyone know how LoadWB command works? I have seen source for GoWB but thats for WB2.0, what about WB1.3?
Theres not much in the NDKs about it.
Title: Re: loadwb command
Post by: Doobrey on February 26, 2005, 11:44:33 PM
AFAIK, it simply opens workbench.library, and calls StartWorkbench() (LVO @ -42)
 Not sure about it`s paramaters, as it`s a private function, but I think it`s d0 and a0.
 a0 appears to be the result of a FindTask(0) from LoadWB, dunno about d0 though.
Title: Re: loadwb command
Post by: pjhutch on March 01, 2005, 11:36:41 AM
Thanks
I have never seen any references to this function in the RKRM's or NDKs. Where did you get the information from?
Title: Re: loadwb command
Post by: Doobrey on March 02, 2005, 12:46:15 AM
Quote

pjhutch wrote:
Where did you get the information from?


Some of it was looking at the fd file from AROS, the rest was from disassembling it and having a quick look.
  I`ll have to have a proper look, but I think it also takes an arg in d1 as well, but the fd from AROS didn`t mention that.. :-?