miércoles, 11 de septiembre de 2019

funció export-matrix-sound en assembler

export-matrix-sound-x( int principi , int final )
{
mov bx,principi
mov cx,[bx]
not cx
not cx
mov bx,final
mov dx,[bx]
not dx
not dx
xor ax,ax
int 0000 0101
}


export-matrix-sound-y( int principi , int final )
{
mov bx,principi
mov cx,[bx]
not cx
mov bx,final
mov dx,[bx]
not dx
sis ax,ax
int not(0000 0101)
}


def-int
{
int 0000 0101 reprodueix la matriu de la tarjeta de so des de cx fins a dx,
y se atura en ax!=0 pulsant una tecla.
int not(0000 0101) reprodueix la matriu de la tarjeta de so des de not(cx) fins a not(dx),
y se atura en ax!=not(0) pulsant una tecla.
}

No hay comentarios:

Publicar un comentario