Subversion Repositories Kolibri OS

Rev

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

Rev 912 Rev 918
Line 53... Line 53...
53
;;
53
;;
54
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
54
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 55... Line 55...
55
 
55
 
Line 56... Line 56...
56
include 'macros.inc'
56
include 'macros.inc'
Line 57... Line 57...
57
 
57
 
Line 58... Line 58...
58
$Revision: 912 $
58
$Revision: 918 $
Line 4221... Line 4221...
4221
	call	put_mono_image
4221
        call    put_mono_image
4222
	add	esp, 12
4222
        add     esp, 12
4223
	pop	edi
4223
        pop     edi
4224
	ret
4224
        ret
4225
@@:
4225
@@:
-
 
4226
        cmp     esi, 2
-
 
4227
        jnz     @f
-
 
4228
        push    edi
-
 
4229
        push    0ffffff80h
-
 
4230
        mov     edi, esp
-
 
4231
        call    put_2bit_image
-
 
4232
        pop     eax
-
 
4233
        pop     edi
-
 
4234
        ret
-
 
4235
@@:
4226
	cmp	esi, 4
4236
        cmp     esi, 4
4227
	jnz	@f
4237
        jnz     @f
4228
	push	edi
4238
        push    edi
4229
	push	0ffffff80h
4239
        push    0ffffff80h
4230
	mov	edi, esp
4240
        mov     edi, esp
Line 4270... Line 4280...
4270
put_mono_image:
4280
put_mono_image:
4271
	push	ebp esi ebp
4281
        push    ebp esi ebp
4272
	mov	ebp, putimage_get1bpp
4282
        mov     ebp, putimage_get1bpp
4273
	mov	esi, putimage_init1bpp
4283
        mov     esi, putimage_init1bpp
4274
	jmp	sys_putimage_bpp
4284
        jmp     sys_putimage_bpp
-
 
4285
put_2bit_image:
-
 
4286
        push    ebp esi ebp
-
 
4287
        mov     ebp, putimage_get2bpp
-
 
4288
        mov     esi, putimage_init2bpp
-
 
4289
        jmp     sys_putimage_bpp
4275
put_4bit_image:
4290
put_4bit_image:
4276
	push	ebp esi ebp
4291
        push    ebp esi ebp
4277
	mov	ebp, putimage_get4bpp
4292
        mov     ebp, putimage_get4bpp
4278
	mov	esi, putimage_init4bpp
4293
        mov     esi, putimage_init4bpp
4279
	jmp	sys_putimage_bpp
4294
        jmp     sys_putimage_bpp
Line 4323... Line 4338...
4323
	and	eax, [edx+8]
4338
	and	eax, [edx+8]
4324
	add	eax, [edx+4]
4339
	add	eax, [edx+4]
4325
	pop	edx
4340
	pop	edx
4326
	ret	4
4341
	ret	4
Line -... Line 4342...
-
 
4342
 
-
 
4343
putimage_init2bpp:
-
 
4344
        add     eax, ecx
-
 
4345
        push    ecx
-
 
4346
        add     ecx, 3
-
 
4347
        add     eax, 3
-
 
4348
        shr     ecx, 2
-
 
4349
        shr     eax, 2
-
 
4350
        sub     eax, ecx
-
 
4351
        pop     ecx
-
 
4352
        ret
-
 
4353
align 16
-
 
4354
putimage_get2bpp:
-
 
4355
        push    edx
-
 
4356
        mov     edx, [esp+8]
-
 
4357
        mov     al, [edx]
-
 
4358
        mov     ah, al
-
 
4359
        shr     al, 6
-
 
4360
        shl     ah, 2
-
 
4361
        jnz     .nonewbyte
-
 
4362
        lodsb
-
 
4363
        mov     ah, al
-
 
4364
        shr     al, 6
-
 
4365
        shl     ah, 2
-
 
4366
        add     ah, 1
-
 
4367
.nonewbyte:
-
 
4368
        mov     [edx], ah
-
 
4369
        mov     edx, [edx+4]
-
 
4370
        movzx   eax, al
-
 
4371
        mov     eax, [edx+eax*4]
-
 
4372
        pop     edx
-
 
4373
        ret     4
4327
 
4374
 
4328
putimage_init4bpp:
4375
putimage_init4bpp:
4329
	add	eax, ecx
4376
	add	eax, ecx
4330
	push	ecx
4377
	push	ecx
4331
	add	ecx, 1
4378
	add	ecx, 1