Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Trabajo colaborativo 3
Arquitectura de computadores
Curso:
301302a _ 291
Grupo
29
Integrantes:
Jhonatan florez obando
código 1098628702
código 1090389292
código xxxxxxxxxxxx
Tutor:
Angelo gerley quintero
INTRODUCCIÓN
1. Explicar mediante un gráfico en que consiste las instrucciones tipo salto del
Lenguaje Ensamblador (Direcciones corta, cercana
y lejana, etiquetas, saltos incondicionales, saltos condicionales, instrucciones de
testeo, decisiones y bucles)
ARQUITECTURA DE COMPUTADORES
mov ah,01h
int 21h
sub al,30h
mov var1,al
mov al,0h
cmp var1,al
ja mayor
jb menor
je igual
mayor:
mov ah,09h
lea dx,msg3
ARQUITECTURA DE COMPUTADORES
int 21h
jmp salir
menor:
mov ah,09h
lea dx,msg2
int 21h
jmp salir
igual:
mov ah,09h
lea dx,msg4
int 21h
jmp salir
salir:
.exit
end
ARQUITECTURA DE COMPUTADORES
linea db 13,10,'$'
var1 db 0
var2 db 0
.code
startup; iniciamos el procedimiento
call limpia
mov ah,09h
lea dx, msj1
int 21h
call leer
sub al,30h
mov var1,al
mov ah,09
lea dx, msj2
int 21h
ARQUITECTURA DE COMPUTADORES
call leer
sub al,30h
mov var2,al
mov cl,var1
sub cl,1
;*****************Multiplicacion
repetir:
add al,var2
LOOP repetir
mov ah,09h
lea dx, msj3
int 21h
mov dl,al
add dl,30h
mov ah,02h
int 21h
;***************Potencia
mov cl,var1
mov bl,var2
mov al,var2
sub cl,1
repetir2:
mul bl
LOOP repetir2
mov ah,09h
lea dx, msj4
ARQUITECTURA DE COMPUTADORES
int 21h
mov dl,al
add dl,30h
mov ah,02h
int 21h
.exit
;************Procedimientos
salto proc near
mov ah,09h
lea dx,linea
int 21h
mov dl,00h
ret
salto endp