Subversion Repositories Kolibri OS

Rev

Rev 2733 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2733 Rev 4229
Line 156... Line 156...
156
    @@:
156
    @@:
157
	mov	[maxval], ebx
157
	mov	[maxval], ebx
Line 158... Line 158...
158
 
158
 
Line -... Line 159...
-
 
159
  .header_parsed:
-
 
160
 
-
 
161
        cmp     [data_type], PNM_RAW
-
 
162
        jne     @f
-
 
163
        mov     ecx, [width]
-
 
164
        imul    ecx, [height]
-
 
165
        lea     eax, [ecx*3]
-
 
166
        mov     edx, [_data]
-
 
167
        add     edx, [_length]
-
 
168
        sub     edx, esi
-
 
169
        cmp     eax, edx
-
 
170
        ja      .error
159
  .header_parsed:
171
    @@:
160
 
172
 
161
	mov	eax, [pnm_type]
173
	mov	eax, [pnm_type]
162
	cmp	eax, PNM_PBM
174
	cmp	eax, PNM_PBM
163
	je	.pbm
175
	je	.pbm
Line 170... Line 182...
170
 
182
 
171
include	'pbm.asm'
183
include	'pbm.asm'
172
include	'pgm.asm'
184
include	'pgm.asm'
Line -... Line 185...
-
 
185
include	'ppm.asm'
-
 
186
 
-
 
187
  .error:
-
 
188
        popa
-
 
189
        xor     eax, eax
173
include	'ppm.asm'
190
        ret
174
 
191
 
175
  .quit:
192
  .quit:
176
	popa
193
	popa