]> git.karo-electronics.de Git - karo-tx-redboot.git/blob - packages/services/gfx/mw/v2_0/src/drivers/asm.h
Initial revision
[karo-tx-redboot.git] / packages / services / gfx / mw / v2_0 / src / drivers / asm.h
1 ; 26 Jul 92
2 ; Copyright (c) 1999 Greg Haerr <greg@censoft.com>
3 ; asm.h - all asm*.s TC/MC/Aztec assembly include file
4 ;
5 ; 7/26/92 v6.3 TSC support 
6 ; 11/17/92 original version
7 ;
8 ; #define __LARGE__, __MEDIUM__, __SMALL__ for model
9 ; #define AZTEC, TURBOC, or MSC for C Compiler
10 ;
11 ; Routines included:
12 ;
13 ;       include asm.h   - start the assembly file
14 ;       .header         - create the code and data segs
15 ;       .cseg           - start the code segment
16 ;       .cend           - end the code segment
17 ;       .dseg           - start the data segment
18 ;       .dend           - end the data segment
19 ;       .dsym name,type - declare global C data (type=word,byte)
20 ;       .cextp name     - reference an external C procedure, use model as type
21 ;       .cextrn name,type- reference external C variable and type(word,byte)
22 ;       .cproc name     - declare a C-accessible procedure, use model as type
23 ;       .cendp name     - end C procedure
24 ;       .center         - enter C procedure (set up BP etc)
25 ;       .cexit          - exit C procedure (restore BP etc)
26
27 ;
28 ; Check Model Symbol
29 IFNDEF __LARGE__
30   IFNDEF __MEDIUM__
31     IFNDEF __SMALL__
32         %OUT You must supply a model symbol, __LARGE__, __SMALL__, or __MEDIUM__
33     ENDIF
34   ENDIF
35 ENDIF
36 ;
37 ; Check Compiler Symbol
38 IFDEF AZTEC
39         include asmaz.h
40 ELSE
41   IFDEF TURBOC
42         include asmtc.h
43   ELSE
44     IFDEF MSC
45         include asmmsc.h
46     ELSE
47       IFDEF TSC
48         include asmtsc.h
49       ELSE
50         %OUT You must supply a Compiler symbol, AZTEC, TURBOC, MSC or TSC.
51         .ERR
52       ENDIF
53     ENDIF
54   ENDIF
55 ENDIF
56 ;
57 ; Define other global symbols
58 IFDEF __LARGE__
59 LPROG   equ     1
60 LDATA   equ     1
61 ifdef AZTEC
62 PROCP   equ     far
63 else
64 PROCPTR equ     far ptr
65 endif
66 ENDIF
67
68 IFDEF __MEDIUM__
69 LPROG   equ     1
70 LDATA   equ     0
71 ifdef AZTEC
72 PROCP   equ     far
73 else
74 PROCPTR equ     far ptr
75 endif
76 ENDIF
77
78 IFDEF __SMALL__
79 LPROG   equ     0
80 LDATA   equ     0
81 ifdef AZTEC
82 PROCP   equ     near
83 else
84 PROCPTR equ     near ptr
85 endif
86 ENDIF
87 ;