Cyrus
Org 0x100]
jmp start
Array1 : Dw 10, 15, 20, 25, 30, 35, 40, 45, 50, 55
Array2 : Dw 15, 10, 20, 35, 40, 30, 55, 50, 25, 45
mov bx, 0 ;
boucle_extérieure :
Mov cx,18 ;
mov ax, [Array2+bx] ;
boucle_intérieure : hache Cmp, [Array1+bx] ;
jne Element_is_not_Equal;
Element_is_not_Equal :
ajouter bx, 2 ;
cmp bx,18 ;
jne boucle_intérieure;
sous cx, 2;
cmp cx,0;
jne boucle_extérieure;
hache de mouvement, 0x4c00;
entier 0x21