Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- grey: cmp al, '2' ;scala di grigi
- jne greyInv
- mov palIndex, 0
- greyLp: mov ax, 01010h ;set della palette
- xor bh, bh ;bh=0
- mov bl, palIndex ;DAC address
- mov dh, palIndex ;R
- mov ch, palIndex ;G
- mov cl, palIndex ;B
- int 10h
- inc palIndex
- cmp palIndex, 63
- jne greyLp
- mov ax, 63
- ret
Advertisement
Add Comment
Please, Sign In to add comment