source: trunk/kLdr/kLdrExeStub-os2.asm@ 3003

Last change on this file since 3003 was 2884, checked in by bird, 19 years ago

buildable.

  • Property svn:keywords set to Id
File size: 1.1 KB
Line 
1; $Id: kLdrExeStub-os2.asm 2884 2006-11-18 12:55:48Z bird $
2;; @file
3;
4; kLdr - OS/2 Loader Stub.
5;
6; This file contains a 64kb code/data/stack segment which is used to kick off
7; the loader dll that loads the process.
8;
9; Copyright (c) 2006 Knut St. Osmundsen <bird-source-spam@anduin.net>
10;
11; GPL
12;
13
14struc KLDRARGS
15 .fFlags resd 1
16 .enmSearch resd 1
17 .szExecutable resb 260
18 .szDefPrefix resb 16
19 .szDefSuffix resb 16
20 .szLibPath resb (4096 - (4 + 4 + 16 + 16 + 260))
21endstruc
22
23extern _kLdrDyldLoadExe
24
25
26segment DATA32 stack CLASS=DATA align=16 use32
27..start:
28 push args
29 jmp _kLdrDyldLoadExe
30
31;
32; Argument structure.
33;
34align 4
35args:
36istruc KLDRARGS
37 at KLDRARGS.fFlags, dd 0
38 at KLDRARGS.enmSearch, dd 2 ;KLDRDYLD_SEARCH_HOST
39 at KLDRARGS.szDefPrefix, db ''
40 at KLDRARGS.szDefSuffix, db '.dll'
41; at KLDRARGS.szExecutable, db 'tst-0.exe'
42 at KLDRARGS.szLibPath, db ''
43iend
44
45segment STACK32 stack CLASS=STACK align=16 use32
46; pad up to 64KB.
47resb 60*1024
48
49global WEAK$ZERO
50WEAK$ZERO EQU 0
51group DGROUP, DATA32 STACK32
52
Note: See TracBrowser for help on using the repository browser.