Professional Documents
Culture Documents
pop
ax
; re-store ax register.
; si should point to next command after
; the call instruction and string definition:
push si
; save new return address into the stack.
mov
si, cs:temp1 ; re-store si register.
ret
; variable to store original
; value of si register.
temp1 dw ?
;*******************************
4. Realizar un programa que entre por teclado la palabra idat y se visualice
en pantalla
5. Analizar el siguiente programa e indicar que es lo que realiza que
interrupciones de pantalla y teclado a utilizado
name "charchar"
org 100h
print_new_line macro
mov dl, 13
mov ah, 2
int 21h
mov dl, 10
mov ah, 2
int 21h
endm
mov dx, offset msg1
mov ah, 9
int 21h
; input the string:
mov dx, offset s1
mov ah, 0ah
int 21h
; get actual string size:
xor cx, cx
mov cl, s1[1]
print_new_line
mov bx, offset s1[2]
print_char:
mov dl, [bx]
mov ah, 2
int 21h
print_new_line
inc bx
loop print_char
; wait for any key...
mov ax, 0
int 16h
ret