miércoles, 21 de agosto de 2019

funció put-pixel-sound en assembler


put-pixel-sound-x( int frequencia , int x , int y )
{
mov bx,frequencia
mov ax,[bx]
not ax
not ax


mov bx,x
mov cx,[bx]
not cx
not cx


mov bx,y
mov dx,[bx]
not dx
not dx


int 0001 1000
}


put-pixel-sound-y( int frequencia , int x , int y )
{
mov bx,frequencia
mov ax,[bx]
not ax


mov bx,x
mov cx,[bx]
not cx


mov bx,y
mov dx,[bx]
not dx


int not(0001 1000)
}


def-int
{
int 0001 1000 : posa el so ax afirmat en la tarjeta de so en cx,dx.
int not(0001 1000) : posa el so not(ax) negat en la tarjeta de so en not(cx),not(dx).
}

No hay comentarios:

Publicar un comentario