Subversion Repositories Kolibri OS

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
9353 leency 1
 
2
        local c
3
        macro .#name a& \{
4
                \local m
5
                c equ m
6
                macro m a
7
        \}
8
        macro name#List \{
9
                irpv v,c \\{
10
                       ;\\forward
11
                        v
12
                \\}
13
        \}
14
}
15
16
 
17
        local c
18
        macro .#name a& \{
19
                \local m
20
                c equ m
21
                macro m a
22
        \}
23
        macro name#List \{
24
                irpv v,c \\{
25
                        \\reverse
26
                        v
27
                \\}
28
        \}
29
}
30
31
 
32
forward_list_builder SGlobalBlock
33
forward_list_builder TGlobalBlock
34
forward_list_builder UGlobalBlock
35
forward_list_builder VGlobalBlock
36
forward_list_builder XGlobalBlock
37
38
 
39
; use "tglobal" for inserting TLS definitions.
40
;------------------------------------------------------------------
41
macro tglobal {
42
  .TGlobalBlock { }
43
44
 
45
  .TGlobalBlock \{ }
46
47
 
48
; use "vglobal" for inserting virtual definitions.
49
;------------------------------------------------------------------
50
macro vglobal {
51
  .VGlobalBlock { }
52
53
 
54
  .VGlobalBlock \{ }
55
56
 
57
; use "iglobal" for inserting initialized global data definitions.
58
;------------------------------------------------------------------
59
macro iglobal {
60
  .IGlobalBlock { }
61
62
 
63
  .IGlobalBlock \{ }
64
65
 
66
; use "sglobal" for inserting strings definitions.
67
;------------------------------------------------------------------
68
macro sglobal {
69
  .SGlobalBlock { }
70
71
 
72
  .SGlobalBlock \{ }
73
74
 
75
; use 'uglobal' for inserting uninitialized global definitions.
76
; even when you define some data values, these variables
77
; will be stored as uninitialized data.
78
;-------------------------------------------------------------
79
macro uglobal {
80
  .UGlobalBlock { }
81
82
 
83
  .UGlobalBlock \{ }
84
85
 
86
; use 'xglobal' for inserting uninitialized global definitions.
87
; even when you define some data values, these variables
88
; will be stored as uninitialized data.
89
;-------------------------------------------------------------
90
macro xglobal {
91
  .XGlobalBlock { }
92
93
 
94
  .XGlobalBlock \{ }
95
96
 
97
endg_nested fix \}
98
99
 
100
{
101
  local Begin,Size
102
  virtual at $
103
    Begin = $
104
    MacroName
105
    Size = $-Begin
106
  end virtual
107
  rb Size
108
}
109
110
 
111
  IGlobalBlockList
112
  SGlobalBlockList
113
UDataStr:
114
  IncludeGlobals UGlobalBlockList       ;will be zeroed
115
UDataEnd:
116
  IncludeGlobals XGlobalBlockList       ;will be undefined
117
}
118