35 lines
869 B
Modula-2
35 lines
869 B
Modula-2
|
LIBRARY TIMER
|
||
|
|
||
|
DESCRIPTION 'timer:Timer'
|
||
|
|
||
|
EXETYPE WINDOWS
|
||
|
|
||
|
PROTMODE
|
||
|
|
||
|
;CODE MOVEABLE DISCARDABLE LOADONCALL SHARED
|
||
|
DATA PRELOAD FIXED SINGLE
|
||
|
|
||
|
SEGMENTS
|
||
|
INIT_CODE PRELOAD MOVEABLE DISCARDABLE SHARED
|
||
|
FIXED_TEXT PRELOAD FIXED SHARED
|
||
|
|
||
|
; we want the 286 segment to come in only when needed
|
||
|
; what we want is LOADONCALL FIXED (but this does not work,
|
||
|
; it works for boot time drivers but not DLLs)
|
||
|
;
|
||
|
; so we make it LOADONCALL MOVEABLE, and PageLock it in
|
||
|
; place if we need it, see libinit.asm!Lib286Init
|
||
|
;
|
||
|
; FIXED_286 LOADONCALL FIXED SHARED
|
||
|
|
||
|
FIXED_286 MOVEABLE DISCARDABLE LOADONCALL SHARED
|
||
|
|
||
|
HEAPSIZE 0
|
||
|
|
||
|
EXPORTS
|
||
|
WEP @1 RESIDENTNAME
|
||
|
DriverProc @2 RESIDENTNAME
|
||
|
|
||
|
IMPORTS
|
||
|
WINFLAGS = KERNEL.178
|