Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .model small
- .stack 64
- .data
- org 20h
- sine db 0,66,127,180,221,246,255
- org 40h
- cose db 255,246,221,180,127,66,0
- org 60h
- total dw 16 dp(0)
- .code
- mov ax,@data
- mov dx,ax
- mov bx,offset sine
- mov si,offset cose
- mov cx,7
- begin:
- mov al,[bx]
- mul al
- push ax
- mov al,[bx+20h]
- mul al
- pop dx
- add dx,ax
- mov [si],dx
- inc bx
- add si,2
- dec cx
- jnz begin
- nop
- mov ah,4ch
- mov al,00h
- int 21h
- end
- ret
Advertisement
Add Comment
Please, Sign In to add comment