home *** CD-ROM | disk | FTP | other *** search
- Path: comma.rhein.de!serpens!not-for-mail
- From: mlelstv@serpens.rhein.de (Michael van Elst)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: CreateProc without LoadSeg
- Date: 26 Jan 1996 15:53:42 +0100
- Organization: dis-
- Message-ID: <4eaptm$3r7@serpens.rhein.de>
- References: <4e9egr$ron@sunsystem5.informatik.tu-muenchen.de>
- NNTP-Posting-Host: serpens.rhein.de
-
- fischerj@Informatik.TU-Muenchen.DE (Juergen "Rally" Fischer) writes:
-
- >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.
-
- Just defines a longword aligned area of length 0. Motorola assemblers understand
- this to align the memory pointer (== next position where code or data is written
- to) and then leave space for 0 longwords. A CNOP 0,4 probably does the same.
-
- >seglist:
- > dc.l 16
- > dc.l 0
- >mycode:
-
- This is sufficient if seglist is longword aligned.
-
- >seglist:
- > dc.l 0
- > dc.l 16
- > dc.l 0
- >mycode:
-
- this is wrong.
-
- >well, _BOTH_ won't work :\ this is imho a RKM bug ("third edition").
-
- You probably forgot that CreateProc does not take a machine pointer
- but a BCPL pointer.
-
- >how to get a subtask (a process) without loading a file ?
-
- Read the autodocs. You could also use CreateNewProc that lets you
- specify an entry point directly. After all time passed since the 1.3
- days, no ?
-
- Regards,
- --
- Michael van Elst
-
- Internet: mlelstv@serpens.rhein.de
- "A potential Snark may lurk in every tree."
-