Subversion Repositories Kolibri OS

Rev

Rev 4978 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4978 Rev 6162
1
;---------------------------------------------------------------------
1
;---------------------------------------------------------------------
2
params:
2
params:
3
	rb 256
3
	rb 256
4
;---------------------------------------------------------------------	
4
;---------------------------------------------------------------------	
5
color_table	sys_colors_new
5
color_table	system_colors
6
 
6
 
7
innamelen	rd 1
7
innamelen	rd 1
8
inname		rb 256	;48
8
inname		rb 256	;48
9
outnamelen	rd 1
9
outnamelen	rd 1
10
outname		rb 256	;48
10
outname		rb 256	;48
11
pathlen		rd 1
11
pathlen		rd 1
12
path		rb 256	;48
12
path		rb 256	;48
13
 
13
 
14
message_mem	rb 80*20
14
message_mem	rb 80*20
15
message_cur_pos	rd 1
15
message_cur_pos	rd 1
16
 
16
 
17
outsize		rd 1
17
outsize		rd 1
18
infile		rd 1
18
infile		rd 1
19
outfile		rd 1
19
outfile		rd 1
20
outfile1	rd 1
20
outfile1	rd 1
21
outfile2	rd 1
21
outfile2	rd 1
22
outfilebest	rd 1
22
outfilebest	rd 1
23
inbuftmp	rd 1
23
inbuftmp	rd 1
24
workmem		rd 1
24
workmem		rd 1
25
lzma_dictsize	rd 1
25
lzma_dictsize	rd 1
26
ct1		rb 256
26
ct1		rb 256
27
ctn		rd 1
27
ctn		rd 1
28
cti		rb 1
28
cti		rb 1
29
use_lzma	= 1
29
use_lzma	= 1
30
 
30
 
31
use_no_calltrick = 0
31
use_no_calltrick = 0
32
use_calltrick1	= 40h
32
use_calltrick1	= 40h
33
use_calltrick2	= 80h
33
use_calltrick2	= 80h
34
 
34
 
35
method		rb 1
35
method		rb 1
36
 
36
 
37
;---------------------------------------------------------------------
37
;---------------------------------------------------------------------
38
align 4
38
align 4
39
fn70block:
39
fn70block:
40
fn70op		rd 1
40
fn70op		rd 1
41
fn70start	rd 1
41
fn70start	rd 1
42
fn70size	rd 1
42
fn70size	rd 1
43
fn70zero	rd 1
43
fn70zero	rd 1
44
fn70dest	rd 1
44
fn70dest	rd 1
45
fullname	rb 4096	;256
45
fullname	rb 4096	;256
46
;---------------------------------------------------------------------
46
;---------------------------------------------------------------------
47
align 4
47
align 4
48
file_attr	rd 8
48
file_attr	rd 8
49
insize		rd 1       ; last qword in file_attr
49
insize		rd 1       ; last qword in file_attr
50
		rd 1
50
		rd 1
51
;---------------------------------------------------------------------
51
;---------------------------------------------------------------------
52
align 4
52
align 4
53
	rb 4096
53
	rb 4096
54
stacktop:
54
stacktop:
55
;---------------------------------------------------------------------
55
;---------------------------------------------------------------------
56
cur_dir_path:
56
cur_dir_path:
57
	rb 4096
57
	rb 4096
58
;---------------------------------------------------------------------
58
;---------------------------------------------------------------------
59
library_path:
59
library_path:
60
	rb 4096
60
	rb 4096
61
;---------------------------------------------------------------------
61
;---------------------------------------------------------------------
62
temp_dir_pach:
62
temp_dir_pach:
63
	rb 4096
63
	rb 4096
64
;---------------------------------------------------------------------
64
;---------------------------------------------------------------------
65
fname_buf:
65
fname_buf:
66
	rb 4096
66
	rb 4096
67
;---------------------------------------------------------------------
67
;---------------------------------------------------------------------
68
filename_area:
68
filename_area:
69
	rb 256
69
	rb 256
70
;---------------------------------------------------------------------
70
;---------------------------------------------------------------------
71
procinfo:
71
procinfo:
72
	rb 1024
72
	rb 1024
73
;---------------------------------------------------------------------
73
;---------------------------------------------------------------------
74
; Deconpress data area start
74
; Deconpress data area start
75
;---------------------------------------------------------------------
75
;---------------------------------------------------------------------
76
align 4
76
align 4
77
unpack.p	rb	0x1F36*4
77
unpack.p	rb	0x1F36*4
78
unpack.code_:
78
unpack.code_:
79
		rd	1
79
		rd	1
80
unpack.range:
80
unpack.range:
81
		rd	1
81
		rd	1
82
unpack.rep0	rd	1
82
unpack.rep0	rd	1
83
unpack.rep1	rd	1
83
unpack.rep1	rd	1
84
unpack.rep2	rd	1
84
unpack.rep2	rd	1
85
unpack.rep3	rd	1
85
unpack.rep3	rd	1
86
unpack.previousByte rb	1
86
unpack.previousByte rb	1
87
;---------------------------------------------------------------------
87
;---------------------------------------------------------------------
88
; Deconpress data area end
88
; Deconpress data area end
89
;---------------------------------------------------------------------
89
;---------------------------------------------------------------------
90
;---------------------------------------------------------------------
90
;---------------------------------------------------------------------
91
; Compress data area start
91
; Compress data area start
92
;---------------------------------------------------------------------
92
;---------------------------------------------------------------------
93
align 4
93
align 4
94
_lenEncoder:
94
_lenEncoder:
95
	rd 8451
95
	rd 8451
96
;-----------------------------------------------------
96
;-----------------------------------------------------
97
_prices:
97
_prices:
98
	rd 4384
98
	rd 4384
99
	rd 17
99
	rd 17
100
;-----------------------------------------------------
100
;-----------------------------------------------------
101
_finished:		rb 1
101
_finished:		rb 1
102
_writeEndMark:		rb 1
102
_writeEndMark:		rb 1
103
_longestMatchWasFound:	rb 1
103
_longestMatchWasFound:	rb 1
104
_previousByte:		rb 1
104
_previousByte:		rb 1
105
_longestMatchLength:	rd 1
105
_longestMatchLength:	rd 1
106
;-----------------------------------------------------
106
;-----------------------------------------------------
107
g_FastPos:
107
g_FastPos:
108
	rb 1024
108
	rb 1024
109
;-----------------------------------------------------
109
;-----------------------------------------------------
110
_posSlotPrices:
110
_posSlotPrices:
111
	rd 256
111
	rd 256
112
;-----------------------------------------------------
112
;-----------------------------------------------------
113
_isRep0Long:
113
_isRep0Long:
114
	rd 192
114
	rd 192
115
;-----------------------------------------------------
115
;-----------------------------------------------------
116
distances:
116
distances:
117
	rd 274
117
	rd 274
118
;-----------------------------------------------------
118
;-----------------------------------------------------
119
_optimumCurrentIndex:	rd 1
119
_optimumCurrentIndex:	rd 1
120
_additionalOffset:	rd 1
120
_additionalOffset:	rd 1
121
;-----------------------------------------------------
121
;-----------------------------------------------------
122
_isRepG1:
122
_isRepG1:
123
	rd 12
123
	rd 12
124
;-----------------------------------------------------
124
;-----------------------------------------------------
125
_isMatch:
125
_isMatch:
126
	rd 192
126
	rd 192
127
;-----------------------------------------------------
127
;-----------------------------------------------------
128
_alignPriceCount:	rd 1
128
_alignPriceCount:	rd 1
129
_numLiteralContextBits:	rd 1
129
_numLiteralContextBits:	rd 1
130
;-----------------------------------------------------
130
;-----------------------------------------------------
131
_literalEncoder:
131
_literalEncoder:
132
	rd 114
132
	rd 114
133
;-----------------------------------------------------
133
;-----------------------------------------------------
134
nowPos64:
134
nowPos64:
135
	rd 2
135
	rd 2
136
;-----------------------------------------------------
136
;-----------------------------------------------------
137
_distancesPrices:
137
_distancesPrices:
138
	rd 512
138
	rd 512
139
;-----------------------------------------------------
139
;-----------------------------------------------------
140
_repDistances:
140
_repDistances:
141
	rd 4
141
	rd 4
142
;-----------------------------------------------------
142
;-----------------------------------------------------
143
_posSlotEncoder:
143
_posSlotEncoder:
144
	rd 1028
144
	rd 1028
145
;-----------------------------------------------------
145
;-----------------------------------------------------
146
lastPosSlotFillingPos:
146
lastPosSlotFillingPos:
147
	rd 2
147
	rd 2
148
;-----------------------------------------------------
148
;-----------------------------------------------------
149
_numFastBytes:	rd 1
149
_numFastBytes:	rd 1
150
_posStateMask:	rd 1
150
_posStateMask:	rd 1
151
;-----------------------------------------------------
151
;-----------------------------------------------------
152
_isRepG0:
152
_isRepG0:
153
	rd 12
153
	rd 12
154
;-----------------------------------------------------
154
;-----------------------------------------------------
155
_repMatchLenEncoder:
155
_repMatchLenEncoder:
156
	rd 8451
156
	rd 8451
157
	rd 4384
157
	rd 4384
158
	rd 17
158
	rd 17
159
;-----------------------------------------------------
159
;-----------------------------------------------------
160
_isRepG2:
160
_isRepG2:
161
	rd 12
161
	rd 12
162
;-----------------------------------------------------
162
;-----------------------------------------------------
163
_dictionarySize:		rd 1
163
_dictionarySize:		rd 1
164
_numLiteralPosStateBits:	rd 1
164
_numLiteralPosStateBits:	rd 1
165
_distTableSize:			rd 1
165
_distTableSize:			rd 1
166
_optimumEndIndex:		rd 1
166
_optimumEndIndex:		rd 1
167
;-----------------------------------------------------
167
;-----------------------------------------------------
168
;static CState state
168
;static CState state
169
state.State:		rb 1
169
state.State:		rb 1
170
state.Prev1IsChar:	rb 1
170
state.Prev1IsChar:	rb 1
171
state.Prev2:		rb 2
171
state.Prev2:		rb 2
172
state.PosPrev2:		rd 1
172
state.PosPrev2:		rd 1
173
state.BackPrev2:	rd 1
173
state.BackPrev2:	rd 1
174
state.Price:		rd 1
174
state.Price:		rd 1
175
state.PosPrev:		rd 1
175
state.PosPrev:		rd 1
176
state.BackPrev:		rd 1
176
state.BackPrev:		rd 1
177
state.Backs:
177
state.Backs:
178
	rd 4
178
	rd 4
179
;----------------------------------------------------
179
;----------------------------------------------------
180
	rd 40950
180
	rd 40950
181
;-----------------------------------------------------
181
;-----------------------------------------------------
182
_alignPrices:
182
_alignPrices:
183
	rd 16
183
	rd 16
184
;-----------------------------------------------------
184
;-----------------------------------------------------
185
_isRep:
185
_isRep:
186
	rd 12
186
	rd 12
187
;-----------------------------------------------------
187
;-----------------------------------------------------
188
_posAlignEncoder:
188
_posAlignEncoder:
189
	rd 256
189
	rd 256
190
;-----------------------------------------------------
190
;-----------------------------------------------------
191
i_01:	rd 1
191
i_01:	rd 1
192
;-----------------------------------------------------
192
;-----------------------------------------------------
193
_state:			rb 1
193
_state:			rb 1
194
_cache:			rb 1
194
_cache:			rb 1
195
_state.Prev2:		rb 2
195
_state.Prev2:		rb 2
196
_posEncoders:		rd 1
196
_posEncoders:		rd 1
197
_numPrevBits:		rd 1
197
_numPrevBits:		rd 1
198
_numPosBits:		rd 1
198
_numPosBits:		rd 1
199
_posMask:		rd 1
199
_posMask:		rd 1
200
_posStateBits:		rd 1
200
_posStateBits:		rd 1
201
_range:			rd 1
201
_range:			rd 1
202
_cacheSize:		rd 1
202
_cacheSize:		rd 1
203
_cyclicBufferSize:	rd 1
203
_cyclicBufferSize:	rd 1
204
;-----------------------------------------------------
204
;-----------------------------------------------------
205
low:
205
low:
206
	rd 2
206
	rd 2
207
;-----------------------------------------------------
207
;-----------------------------------------------------
208
Models:
208
Models:
209
	rd 512
209
	rd 512
210
;-----------------------------------------------------
210
;-----------------------------------------------------
211
_matchMaxLen:	rd 1
211
_matchMaxLen:	rd 1
212
pack_pos:	rd 1
212
pack_pos:	rd 1
213
_cutValue:	rd 1
213
_cutValue:	rd 1
214
_hash:		rd 1
214
_hash:		rd 1
215
;-----------------------------------------------------
215
;-----------------------------------------------------
216
crc_table:
216
crc_table:
217
	rd 256
217
	rd 256
218
;-----------------------------------------------------
218
;-----------------------------------------------------
219
_buffer:	rd 1
219
_buffer:	rd 1
220
_pos:		rd 1
220
_pos:		rd 1
221
_streamPos:	rd 1
221
_streamPos:	rd 1
222
pack_length:	rd 1
222
pack_length:	rd 1
223
;---------------------------------------------------------------------
223
;---------------------------------------------------------------------
224
; Compress data area end
224
; Compress data area end
225
;---------------------------------------------------------------------
225
;---------------------------------------------------------------------
226
 
226
 
227
;*********************************************************************
227
;*********************************************************************
228
; Kerpack data
228
; Kerpack data
229
;*********************************************************************
229
;*********************************************************************
230
align	4
230
align	4
231
inptr		dd ?
231
inptr		dd ?
232
indelta		dd ?
232
indelta		dd ?
233
insize1		dd ?
233
insize1		dd ?
234
;ct1		rb 256
234
;ct1		rb 256
235
;ctn		dd ?
235
;ctn		dd ?
236
;cti		db ?
236
;cti		db ?