| 1 | ; $Id: devlast.asm,v 1.5 2000-02-25 18:15:03 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 _VFTEND | 
|---|
| 33 | public EH_DATAEND | 
|---|
| 34 | public _CallR0Init32 | 
|---|
| 35 | public _CallVerifyImportTab32 | 
|---|
| 36 |  | 
|---|
| 37 |  | 
|---|
| 38 |  | 
|---|
| 39 | ; | 
|---|
| 40 | ; all segments have a <segmentname>END label at the end of the segment. | 
|---|
| 41 | ; | 
|---|
| 42 | DATA16 segment | 
|---|
| 43 | DATA16END db ? | 
|---|
| 44 | DATA16 ends | 
|---|
| 45 |  | 
|---|
| 46 | DATA16_BSS segment | 
|---|
| 47 | DATA16_BSSEND db ? | 
|---|
| 48 | DATA16_BSS ends | 
|---|
| 49 |  | 
|---|
| 50 | DATA16_CONST segment | 
|---|
| 51 | DATA16_CONSTEND db ? | 
|---|
| 52 | DATA16_CONST ends | 
|---|
| 53 |  | 
|---|
| 54 |  | 
|---|
| 55 | extrn R0INIT32:FAR | 
|---|
| 56 | extrn VERIFYIMPORTTAB32:FAR | 
|---|
| 57 |  | 
|---|
| 58 | CODE16 segment | 
|---|
| 59 | CODE16END db ? | 
|---|
| 60 |  | 
|---|
| 61 | ;; | 
|---|
| 62 | ; Thunk procedure for R0Init32. | 
|---|
| 63 | ; @cproto    USHORT NEAR CallR0Init32(LIN pRpInit); | 
|---|
| 64 | ; @returns   Same as R0Init32. | 
|---|
| 65 | ; @param     pRpInit  32-bit pointer to request packet. | 
|---|
| 66 | ; @status    completely implemented. | 
|---|
| 67 | ; @author    knut st. osmundsen | 
|---|
| 68 | _CallR0Init32 PROC NEAR | 
|---|
| 69 | ASSUME CS:CODE16 | 
|---|
| 70 | push    ds | 
|---|
| 71 | push    word ptr [esp+6]            ; push high word. | 
|---|
| 72 | push    word ptr [esp+6]            ; push low word. | 
|---|
| 73 | call    far ptr FLAT:R0INIT32 | 
|---|
| 74 | pop     ds | 
|---|
| 75 | retn | 
|---|
| 76 | _CallR0Init32 ENDP | 
|---|
| 77 |  | 
|---|
| 78 |  | 
|---|
| 79 | ;; | 
|---|
| 80 | ; Thunk procedure for VerifyImportTab32. | 
|---|
| 81 | ; @cproto    USHORT NEAR CallVerifyImportTab32(void); | 
|---|
| 82 | ; @returns   Same as VerifyImportTab32. | 
|---|
| 83 | ; @status    completely implemented. | 
|---|
| 84 | ; @author    knut st. osmundsen | 
|---|
| 85 | _CallVerifyImportTab32 PROC NEAR | 
|---|
| 86 | ASSUME CS:CODE16 | 
|---|
| 87 | push    ds | 
|---|
| 88 | call    far ptr FLAT:VERIFYIMPORTTAB32 | 
|---|
| 89 | pop     ds | 
|---|
| 90 | retn | 
|---|
| 91 | _CallVerifyImportTab32 ENDP | 
|---|
| 92 |  | 
|---|
| 93 | CODE16 ends | 
|---|
| 94 |  | 
|---|
| 95 |  | 
|---|
| 96 | CODE32 segment | 
|---|
| 97 | CODE32END LABEL BYTE | 
|---|
| 98 | CODE32 ends | 
|---|
| 99 |  | 
|---|
| 100 | DATA32 segment | 
|---|
| 101 | DATA32END  LABEL BYTE | 
|---|
| 102 | DATA32 ends | 
|---|
| 103 |  | 
|---|
| 104 | BSS32 segment | 
|---|
| 105 | BSS32END  LABEL BYTE | 
|---|
| 106 | BSS32 ends | 
|---|
| 107 |  | 
|---|
| 108 | CONST32_RO segment | 
|---|
| 109 | CONST32_ROEND LABEL BYTE | 
|---|
| 110 | CONST32_RO ends | 
|---|
| 111 |  | 
|---|
| 112 | _VFT segment | 
|---|
| 113 | _VFTEND LABEL BYTE | 
|---|
| 114 | _VFT ends | 
|---|
| 115 |  | 
|---|
| 116 | EH_DATA segment | 
|---|
| 117 | EH_DATAEND LABEL BYTE | 
|---|
| 118 | EH_DATA ends | 
|---|
| 119 |  | 
|---|
| 120 | END | 
|---|
| 121 |  | 
|---|