Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 905 → Rev 906

/kernel/trunk/kernel.asm
4214,6 → 4214,12
mov esi, putimage_init8bpp
jmp sys_putimage_bpp
@@:
cmp esi, 15
jnz @f
mov ebp, putimage_get15bpp
mov esi, putimage_init15bpp
jmp sys_putimage_bpp
@@:
cmp esi, 16
jnz @f
mov ebp, putimage_get16bpp
4260,10 → 4266,10
lodsd
ret 4
 
putimage_init16bpp:
putimage_init15bpp:
add eax, eax
ret
putimage_get16bpp:
putimage_get15bpp:
; 0RRRRRGGGGGBBBBB -> 00000000RRRRR000GGGGG000BBBBB000
push ecx edx
movzx eax, word [esi]
4279,7 → 4285,28
or eax, ecx
or eax, edx
pop edx ecx
ret 4
 
putimage_init16bpp:
add eax, eax
ret
putimage_get16bpp:
; RRRRRGGGGGGBBBBB -> 00000000RRRRR000GGGGGG00BBBBB000
push ecx edx
movzx eax, word [esi]
add esi, 2
mov ecx, eax
mov edx, eax
and eax, 0x1F
and ecx, 0x3F shl 5
and edx, 0x1F shl 11
shl eax, 3
shl ecx, 5
shl edx, 8
or eax, ecx
or eax, edx
pop edx ecx
ret 4
 
; eax x beginning
; ebx y beginning