Skip to content

Instantly share code, notes, and snippets.

@sinitcin
Created January 28, 2014 10:04

Revisions

  1. sinitcin created this gist Jan 28, 2014.
    9 changes: 9 additions & 0 deletions RGB Macro
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    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
    }