Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 843 → Rev 844

/kernel/branches/kolibri_pe/kernel.asm
4236,6 → 4236,12
mov esi, putimage_init8bpp
jmp sys_putimage_bpp
@@:
cmp esi, 16
jnz @f
mov ebp, putimage_get16bpp
mov esi, putimage_init16bpp
jmp sys_putimage_bpp
@@:
cmp esi, 24
jnz @f
mov ebp, putimage_get24bpp
4248,7 → 4254,7
mov esi, putimage_init32bpp
jmp sys_putimage_bpp
@@:
pop ebp esi
pop ebp esi ebp
ret
 
putimage_init24bpp:
4276,6 → 4282,27
lodsd
ret 4
 
putimage_init16bpp:
add eax, eax
ret
putimage_get16bpp:
; 0RRRRRGGGGGBBBBB -> 00000000RRRRR000GGGGG000BBBBB000
push ecx edx
movzx eax, word [esi]
add esi, 2
mov ecx, eax
mov edx, eax
and eax, 0x1F
and ecx, 0x1F shl 5
and edx, 0x1F shl 10
shl eax, 3
shl ecx, 6
shl edx, 9
or eax, ecx
or eax, edx
pop edx ecx
ret
 
; eax x beginning
; ebx y beginning
; ecx x end