1 ; i386.asm - description
3 ; begin : Sun Nov 08 2001
4 ; copyright : (C) 2001 by Pete Bernert
5 ; email : BlackDove@addcom.de
7 ; ported from inline gcc to nasm by linuzappz
10 ; This program is free software; you can redistribute it and/or modify *
11 ; it under the terms of the GNU General Public License as published by *
12 ; the Free Software Foundation; either version 2 of the License, or *
13 ; (at your option) any later version. See also the license.txt file for *
14 ; additional informations. *
29 mov eax, [ebp+8] ; this can hold the G value
30 mov ebx, eax ; this can hold the R value
31 mov edx, eax ; this can hold the B value
32 shr ebx, 3 ; move the R value
33 and edx, 00f80000h ; mask the B value
34 shr edx, 9 ; move the B value
35 and eax, 00f800h ; mask the G value
36 shr eax, 6 ; move the G value
37 and ebx, 0000001fh ; mask the R value
38 or eax, ebx ; add R to G value
39 or eax, edx ; add B to RG value
64 %ifidn __OUTPUT_FORMAT__,elf
65 section .note.GNU-stack noalloc noexec nowrite progbits