schifazl

palette cacca

Feb 13th, 2013
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. grey:   cmp al, '2'     ;scala di grigi
  2.     jne greyInv
  3.     mov palIndex, 0
  4.  
  5. greyLp: mov     ax, 01010h  ;set della palette
  6.     xor bh, bh      ;bh=0
  7.     mov bl, palIndex    ;DAC address
  8.     mov     dh, palIndex    ;R
  9.     mov     ch, palIndex    ;G
  10.     mov     cl, palIndex    ;B
  11.     int     10h
  12.    
  13.     inc palIndex
  14.     cmp palIndex, 63
  15.     jne greyLp
  16.     mov ax, 63
  17.     ret
Advertisement
Add Comment
Please, Sign In to add comment