home *** CD-ROM | disk | FTP | other *** search
- ;------------------------------------------------------------------------------
- paletta: pusha
- mov dx,3c8h
- MOV AL,1
- out dx,al
- ;xor bx,bx
- mov bl,10
- inc dx
- out dx,al
- out dx,al
- out dx,al
- mov cx,63
- palinc: mov al,bl
- push cx
- mov cx,4
- palfour: mov al,10
- out dx,al
- mov al,bl
- out dx,al
- add al,5
- out dx,al
- loop palfour
- pop cx
- inc bx
- loop palinc
- popa
- ret
- ;*****************************************************************************
- smooth: mov di,80+320*24
- smoo: mov ah,0
- mov bh,0
- mov cx,160
- smoo1: mov al,byte ptr es:[di-1]
- mov bl,byte ptr es:[di+1]
- add ax,bx
- mov bl,byte ptr es:[di-320]
- add ax,bx
- mov bl,byte ptr es:[di+320]
- add ax,bx
- shr ax,2
- mov byte ptr es:[di+320],al
- inc di
- loop smoo1
- add di,160
- cmp di,64000
- jbe smoo
- ret
- ;*****************************************************************************
-