Advertisement
Runer112

EdgePixelCombine

Feb 7th, 2012
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. EdgePixelCombine:
  2.                 ;b=ABC00000
  3.                 ;a=DXE00000
  4.                 ;c=FGH00000
  5.     xor b
  6.     and %10111111
  7.     xor b       ;a=DBE00000
  8.     rlca
  9.     rlca            ;a=00DBE000
  10.     xor c
  11.     and %10111111
  12.     xor c       ;a=0GDBE000
  13.     rrca
  14.     rrca            ;a=000GDBE0
  15.     or  b       ;a=ABCGDBE0
  16.     rrca            ;a=0ABCGDBE
  17.     xor c
  18.     and %01011111
  19.     xor c       ;a=FAHCGDBE
  20.     ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement