[4164] | 1 | ; $Id: devlast.asm,v 1.6 2000-09-02 21:07:58 bird Exp $
|
---|
[847] | 2 | ;
|
---|
[1467] | 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 | ;
|
---|
[847] | 7 | ; Copyright (c) 1999 knut st. osmundsen
|
---|
| 8 | ;
|
---|
[1467] | 9 | ; Project Odin Software License can be found in LICENSE.TXT
|
---|
[847] | 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 DATA16END
|
---|
| 24 | public DATA16_BSSEND
|
---|
| 25 | public DATA16_CONSTEND
|
---|
[4164] | 26 | public DATA16_INITEND
|
---|
| 27 | public DATA16_INIT_BSSEND
|
---|
| 28 | public DATA16_INIT_CONSTEND
|
---|
[847] | 29 | public CODE16END
|
---|
[4164] | 30 | public CODE16_INITEND
|
---|
[847] | 31 | public CODE32END
|
---|
| 32 | public DATA32END
|
---|
| 33 | public BSS32END
|
---|
| 34 | public CONST32_ROEND
|
---|
[2898] | 35 | public _VFTEND
|
---|
| 36 | public EH_DATAEND
|
---|
[4164] | 37 |
|
---|
[847] | 38 | public _CallR0Init32
|
---|
[2832] | 39 | public _CallVerifyImportTab32
|
---|
[847] | 40 |
|
---|
| 41 |
|
---|
| 42 |
|
---|
| 43 | ;
|
---|
| 44 | ; all segments have a <segmentname>END label at the end of the segment.
|
---|
| 45 | ;
|
---|
| 46 | DATA16 segment
|
---|
| 47 | DATA16END db ?
|
---|
| 48 | DATA16 ends
|
---|
| 49 |
|
---|
| 50 | DATA16_BSS segment
|
---|
| 51 | DATA16_BSSEND db ?
|
---|
| 52 | DATA16_BSS ends
|
---|
| 53 |
|
---|
| 54 | DATA16_CONST segment
|
---|
| 55 | DATA16_CONSTEND db ?
|
---|
| 56 | DATA16_CONST ends
|
---|
| 57 |
|
---|
[4164] | 58 | DATA16_INIT segment
|
---|
| 59 | DATA16_INITEND db ?
|
---|
| 60 | DATA16_INIT ends
|
---|
[847] | 61 |
|
---|
[4164] | 62 | DATA16_INIT_BSS segment
|
---|
| 63 | DATA16_INIT_BSSEND db ?
|
---|
| 64 | DATA16_INIT_BSS ends
|
---|
[847] | 65 |
|
---|
[4164] | 66 | DATA16_INIT_CONST segment
|
---|
| 67 | DATA16_INIT_CONSTEND db ?
|
---|
| 68 | DATA16_INIT_CONST ends
|
---|
| 69 |
|
---|
[847] | 70 | CODE16 segment
|
---|
| 71 | CODE16END db ?
|
---|
[4164] | 72 | CODE16 ends
|
---|
[847] | 73 |
|
---|
[4164] | 74 | extrn R0INIT32:FAR
|
---|
| 75 | extrn VERIFYIMPORTTAB32:FAR
|
---|
| 76 |
|
---|
| 77 | CODE16_INIT segment
|
---|
[1467] | 78 | ;;
|
---|
| 79 | ; Thunk procedure for R0Init32.
|
---|
| 80 | ; @cproto USHORT NEAR CallR0Init32(LIN pRpInit);
|
---|
| 81 | ; @returns Same as R0Init32.
|
---|
| 82 | ; @param pRpInit 32-bit pointer to request packet.
|
---|
| 83 | ; @status completely implemented.
|
---|
| 84 | ; @author knut st. osmundsen
|
---|
[847] | 85 | _CallR0Init32 PROC NEAR
|
---|
[4164] | 86 | ASSUME CS:CODE16_INIT
|
---|
[847] | 87 | push ds
|
---|
[1467] | 88 | push word ptr [esp+6] ; push high word.
|
---|
| 89 | push word ptr [esp+6] ; push low word.
|
---|
[847] | 90 | call far ptr FLAT:R0INIT32
|
---|
| 91 | pop ds
|
---|
[4164] | 92 | ret
|
---|
[847] | 93 | _CallR0Init32 ENDP
|
---|
[1467] | 94 |
|
---|
| 95 |
|
---|
| 96 | ;;
|
---|
[2832] | 97 | ; Thunk procedure for VerifyImportTab32.
|
---|
| 98 | ; @cproto USHORT NEAR CallVerifyImportTab32(void);
|
---|
| 99 | ; @returns Same as VerifyImportTab32.
|
---|
[1467] | 100 | ; @status completely implemented.
|
---|
| 101 | ; @author knut st. osmundsen
|
---|
[2832] | 102 | _CallVerifyImportTab32 PROC NEAR
|
---|
[4164] | 103 | ASSUME CS:CODE16_INIT
|
---|
[1467] | 104 | push ds
|
---|
[2832] | 105 | call far ptr FLAT:VERIFYIMPORTTAB32
|
---|
[1467] | 106 | pop ds
|
---|
[4164] | 107 | ret
|
---|
[2832] | 108 | _CallVerifyImportTab32 ENDP
|
---|
[1467] | 109 |
|
---|
[4164] | 110 | CODE16_INITEND LABEL BYTE
|
---|
| 111 | CODE16_INIT ends
|
---|
[847] | 112 |
|
---|
[1467] | 113 |
|
---|
[847] | 114 | CODE32 segment
|
---|
[2898] | 115 | CODE32END LABEL BYTE
|
---|
[847] | 116 | CODE32 ends
|
---|
| 117 |
|
---|
| 118 | DATA32 segment
|
---|
[2898] | 119 | DATA32END LABEL BYTE
|
---|
[847] | 120 | DATA32 ends
|
---|
| 121 |
|
---|
| 122 | BSS32 segment
|
---|
| 123 | BSS32END LABEL BYTE
|
---|
| 124 | BSS32 ends
|
---|
| 125 |
|
---|
| 126 | CONST32_RO segment
|
---|
[2836] | 127 | CONST32_ROEND LABEL BYTE
|
---|
[847] | 128 | CONST32_RO ends
|
---|
[2836] | 129 |
|
---|
| 130 | _VFT segment
|
---|
| 131 | _VFTEND LABEL BYTE
|
---|
| 132 | _VFT ends
|
---|
| 133 |
|
---|
| 134 | EH_DATA segment
|
---|
| 135 | EH_DATAEND LABEL BYTE
|
---|
| 136 | EH_DATA ends
|
---|
| 137 |
|
---|
[4164] | 138 |
|
---|
[847] | 139 | END
|
---|
| 140 |
|
---|