Ejercicios con funciones emu8086
call inicializar call sumaraxbx hlt inicializar: mov ax, 8 mov bx, 9 ret sumaraxbx: add ax, bx ret mov ax, 8 mov bx, 9 add ax, bx hlt mov ax, 203 mov bl, 4 div bl call inicializar call divaxbx hlt inicializar: mov ax, 203 mov bx, 4 ret divaxbx: div bx ret call inicializar call multaxbx hlt inicializar: mov ax, 8 mov bx, 9 ret multaxbx: mul bx ret call inicializar call restaxbx hlt inicializar: mov ax, 10h mov bx, 12h ret restaxbx: sub ax, bx ret mov dl, 5 mov al, 10 mul dl hlt mov ax, 10h mov bx, 12h sub ax, bx hlt
Comentarios
Publicar un comentario