home *** CD-ROM | disk | FTP | other *** search
- Path: informatik.tu-muenchen.de!fischerj
- From: fischerj@Informatik.TU-Muenchen.DE (Juergen "Rally" Fischer)
- Newsgroups: comp.sys.amiga.programmer
- Subject: CreateProc without LoadSeg
- Date: 26 Jan 1996 02:32:59 GMT
- Organization: Technische Universitaet Muenchen, Germany
- Distribution: world
- Message-ID: <4e9egr$ron@sunsystem5.informatik.tu-muenchen.de>
- NNTP-Posting-Host: hphalle5.informatik.tu-muenchen.de
- X-Newsreader: TIN [version 1.2 PL2]
-
-
- Using LoadSeg() for getting a 'seglist' the function CreateProc() needs,
- all works fine.
-
- when using the 'faked' seglist a la RKM, I get a guru under OS3.0 (the
- guru tells the name of my created process, so createproc returned without
- error. so my created process crashes (well, somehow the OS jumps to wrong
- adress I guess). ).
-
- I quote:
-
- If you wish to fake a seglist, use this code:
-
- ds.l 0 ;align to long
- dc.l 16 ;Segment "length" faked
- dc.l 0 ;next segment
- ....start of code...
-
- well. "ds.l 0". what does this mean, my assembler is crap in handling that
- stuff.
-
- so how does this "struc" look like ?
-
- assuming label seglist is longword aligned.
-
- is it this:
-
- seglist:
- dc.l 16
- dc.l 0
- mycode:
-
- or is it:
-
- seglist:
- dc.l 0
- dc.l 16
- dc.l 0
- mycode:
-
- well, _BOTH_ won't work :\ this is imho a RKM bug ("third edition").
-
- how to get a subtask (a process) without loading a file ?
- I want to get the process running parts of my currently running code
- (not some code of some file).
-
- ------------------------------------------------------------------------
- fischerj@Informatik.TU-Muenchen.DE (Juergen "Rally" Fischer) =:)
-
-