1 | ; $Id: devlast.asm,v 1.2 1999-10-27 02:02:54 bird Exp $
|
---|
2 | ;
|
---|
3 | ; DevLast - the object file termintating the resident part of the objects.
|
---|
4 | ; Code after the ???END labes and object files and which are linked in
|
---|
5 | ; after this file is discarded after init.
|
---|
6 | ;
|
---|
7 | ; Copyright (c) 1999 knut st. osmundsen
|
---|
8 | ;
|
---|
9 | ; Project Odin Software License can be found in LICENSE.TXT
|
---|
10 | ;
|
---|
11 | .model flat
|
---|
12 | .386p
|
---|
13 |
|
---|
14 | ;
|
---|
15 | ; Include files
|
---|
16 | ;
|
---|
17 | include devsegdf.inc
|
---|
18 |
|
---|
19 |
|
---|
20 | ;
|
---|
21 | ; Exported symbols
|
---|
22 | ;
|
---|
23 | public CODE16END
|
---|
24 | public DATA16END
|
---|
25 | public DATA16_BSSEND
|
---|
26 | public DATA16_CONSTEND
|
---|
27 | public CODE16END
|
---|
28 | public CODE32END
|
---|
29 | public DATA32END
|
---|
30 | public BSS32END
|
---|
31 | public CONST32_ROEND
|
---|
32 | public _CallR0Init32
|
---|
33 | public _CallVerifyProcTab32
|
---|
34 |
|
---|
35 |
|
---|
36 |
|
---|
37 | ;
|
---|
38 | ; all segments have a <segmentname>END label at the end of the segment.
|
---|
39 | ;
|
---|
40 | DATA16 segment
|
---|
41 | DATA16END db ?
|
---|
42 | DATA16 ends
|
---|
43 |
|
---|
44 | DATA16_BSS segment
|
---|
45 | DATA16_BSSEND db ?
|
---|
46 | DATA16_BSS ends
|
---|
47 |
|
---|
48 | DATA16_CONST segment
|
---|
49 | DATA16_CONSTEND db ?
|
---|
50 | DATA16_CONST ends
|
---|
51 |
|
---|
52 |
|
---|
53 | extrn R0INIT32:FAR
|
---|
54 | extrn VERIFYPROCTAB32:FAR
|
---|
55 |
|
---|
56 | CODE16 segment
|
---|
57 | CODE16END db ?
|
---|
58 |
|
---|
59 | ;;
|
---|
60 | ; Thunk procedure for R0Init32.
|
---|
61 | ; @cproto USHORT NEAR CallR0Init32(LIN pRpInit);
|
---|
62 | ; @returns Same as R0Init32.
|
---|
63 | ; @param pRpInit 32-bit pointer to request packet.
|
---|
64 | ; @status completely implemented.
|
---|
65 | ; @author knut st. osmundsen
|
---|
66 | _CallR0Init32 PROC NEAR
|
---|
67 | ASSUME CS:CODE16
|
---|
68 | push ds
|
---|
69 | push word ptr [esp+6] ; push high word.
|
---|
70 | push word ptr [esp+6] ; push low word.
|
---|
71 | call far ptr FLAT:R0INIT32
|
---|
72 | pop ds
|
---|
73 | retn
|
---|
74 | _CallR0Init32 ENDP
|
---|
75 |
|
---|
76 |
|
---|
77 | ;;
|
---|
78 | ; Thunk procedure for VerifyProcTab32.
|
---|
79 | ; @cproto USHORT NEAR CallVerifyProcTab32(void);
|
---|
80 | ; @returns Same as VerifyProcTab32.
|
---|
81 | ; @status completely implemented.
|
---|
82 | ; @author knut st. osmundsen
|
---|
83 | _CallVerifyProcTab32 PROC NEAR
|
---|
84 | ASSUME CS:CODE16
|
---|
85 | push ds
|
---|
86 | call far ptr FLAT:VERIFYPROCTAB32
|
---|
87 | pop ds
|
---|
88 | retn
|
---|
89 | _CallVerifyProcTab32 ENDP
|
---|
90 |
|
---|
91 | CODE16 ends
|
---|
92 |
|
---|
93 |
|
---|
94 | CODE32 segment
|
---|
95 | CODE32END db ?
|
---|
96 | CODE32 ends
|
---|
97 |
|
---|
98 | DATA32 segment
|
---|
99 | DATA32END db ?
|
---|
100 | DATA32 ends
|
---|
101 |
|
---|
102 | BSS32 segment
|
---|
103 | BSS32END LABEL BYTE
|
---|
104 | BSS32 ends
|
---|
105 |
|
---|
106 | CONST32_RO segment
|
---|
107 | CONST32_ROEND db ?
|
---|
108 | CONST32_RO ends
|
---|
109 | END
|
---|
110 |
|
---|