How can I save the string I entered to use it again
I tried changing the value of A1,A2 for example:
A1 DB ?
and
A1 DB '$\'
.DATA
P1 DB 'Enter the First Strig : $\'
P2 DB 'Enter the Second character : $\'
L db 0ah,0dh,'$'
P3 DB ' the " $\'
P4 DB ' " and " $\'
P5 DB ' " is: $\'
FIRST_BASE db 255
SECOND_BASE db 255
A1 DB dup('$')
A2 DB dup('$')
.code
.model small
start:
mov ax,@data
mov ds,ax
printString P1
lea dx, FIRST_BASE
mov ah,0ah
int 21h
MOV A1,AH < --------- (!!!Here's the problem I can't save the string!!!)
printString L
printString P2
lea dx, SECOND_BASE
mov ah,0ah
MOV A2,AH < --------- (!!!Here's the problem I can't save the string!!!)
int 21h
printString L
for printing
(2)= Here he prints strange shapes and letters
printString P3
printString A1 <-----------(2)
printString P4
printString A2 <-----------(2)
printString P5
mov ax,ham_dist
I want it to look like this = the "(The string that I entered first) " and "(The string you entered second) " is:(Did not matter)