| 1 | ; $Id: devlast.asm,v 1.6 2000-09-02 21:07:58 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 DATA16END | 
|---|
| 24 | public DATA16_BSSEND | 
|---|
| 25 | public DATA16_CONSTEND | 
|---|
| 26 | public DATA16_INITEND | 
|---|
| 27 | public DATA16_INIT_BSSEND | 
|---|
| 28 | public DATA16_INIT_CONSTEND | 
|---|
| 29 | public CODE16END | 
|---|
| 30 | public CODE16_INITEND | 
|---|
| 31 | public CODE32END | 
|---|
| 32 | public DATA32END | 
|---|
| 33 | public BSS32END | 
|---|
| 34 | public CONST32_ROEND | 
|---|
| 35 | public _VFTEND | 
|---|
| 36 | public EH_DATAEND | 
|---|
| 37 |  | 
|---|
| 38 | public _CallR0Init32 | 
|---|
| 39 | public _CallVerifyImportTab32 | 
|---|
| 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 |  | 
|---|
| 58 | DATA16_INIT segment | 
|---|
| 59 | DATA16_INITEND db ? | 
|---|
| 60 | DATA16_INIT ends | 
|---|
| 61 |  | 
|---|
| 62 | DATA16_INIT_BSS segment | 
|---|
| 63 | DATA16_INIT_BSSEND db ? | 
|---|
| 64 | DATA16_INIT_BSS ends | 
|---|
| 65 |  | 
|---|
| 66 | DATA16_INIT_CONST segment | 
|---|
| 67 | DATA16_INIT_CONSTEND db ? | 
|---|
| 68 | DATA16_INIT_CONST ends | 
|---|
| 69 |  | 
|---|
| 70 | CODE16 segment | 
|---|
| 71 | CODE16END db ? | 
|---|
| 72 | CODE16 ends | 
|---|
| 73 |  | 
|---|
| 74 | extrn R0INIT32:FAR | 
|---|
| 75 | extrn VERIFYIMPORTTAB32:FAR | 
|---|
| 76 |  | 
|---|
| 77 | CODE16_INIT segment | 
|---|
| 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 | 
|---|
| 85 | _CallR0Init32 PROC NEAR | 
|---|
| 86 | ASSUME CS:CODE16_INIT | 
|---|
| 87 | push    ds | 
|---|
| 88 | push    word ptr [esp+6]            ; push high word. | 
|---|
| 89 | push    word ptr [esp+6]            ; push low word. | 
|---|
| 90 | call    far ptr FLAT:R0INIT32 | 
|---|
| 91 | pop     ds | 
|---|
| 92 | ret | 
|---|
| 93 | _CallR0Init32 ENDP | 
|---|
| 94 |  | 
|---|
| 95 |  | 
|---|
| 96 | ;; | 
|---|
| 97 | ; Thunk procedure for VerifyImportTab32. | 
|---|
| 98 | ; @cproto    USHORT NEAR CallVerifyImportTab32(void); | 
|---|
| 99 | ; @returns   Same as VerifyImportTab32. | 
|---|
| 100 | ; @status    completely implemented. | 
|---|
| 101 | ; @author    knut st. osmundsen | 
|---|
| 102 | _CallVerifyImportTab32 PROC NEAR | 
|---|
| 103 | ASSUME CS:CODE16_INIT | 
|---|
| 104 | push    ds | 
|---|
| 105 | call    far ptr FLAT:VERIFYIMPORTTAB32 | 
|---|
| 106 | pop     ds | 
|---|
| 107 | ret | 
|---|
| 108 | _CallVerifyImportTab32 ENDP | 
|---|
| 109 |  | 
|---|
| 110 | CODE16_INITEND LABEL BYTE | 
|---|
| 111 | CODE16_INIT ends | 
|---|
| 112 |  | 
|---|
| 113 |  | 
|---|
| 114 | CODE32 segment | 
|---|
| 115 | CODE32END LABEL BYTE | 
|---|
| 116 | CODE32 ends | 
|---|
| 117 |  | 
|---|
| 118 | DATA32 segment | 
|---|
| 119 | DATA32END  LABEL BYTE | 
|---|
| 120 | DATA32 ends | 
|---|
| 121 |  | 
|---|
| 122 | BSS32 segment | 
|---|
| 123 | BSS32END  LABEL BYTE | 
|---|
| 124 | BSS32 ends | 
|---|
| 125 |  | 
|---|
| 126 | CONST32_RO segment | 
|---|
| 127 | CONST32_ROEND LABEL BYTE | 
|---|
| 128 | CONST32_RO ends | 
|---|
| 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 |  | 
|---|
| 138 |  | 
|---|
| 139 | END | 
|---|
| 140 |  | 
|---|