Skip to content

Instantly share code, notes, and snippets.

@sinitcin
Created January 28, 2014 10:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sinitcin/8665016 to your computer and use it in GitHub Desktop.
Save sinitcin/8665016 to your computer and use it in GitHub Desktop.
macro RGB red, green, blue
{
xor eax, eax
mov al, blue ; blue
rol eax, 8
mov al, green ; green
rol eax, 8
mov al, red ; red
}
@sinitcin
Copy link
Author

Макрос для FASM генерирует RGB цвет на основе значений 0.255 для каждого из составных цветов...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment