Hi All!
I have a variable called key, defined as key db "A$".
inside the program i change its value to "B" and display, still i get the same initial value which is "A". Can somebody help please?, my prog is as follows:
DOSSEG
.MODEL SMALL
.STACK 200h
.data
key db "A$"
.CODE
START:
mov bx,offset key
mov byte ptr[bx],"B"
inc bx
mov byte ptr[bx],"$"
mov ax,seg key
mov ds,ax
mov ah,9
mov dx,offset key
int 21h
mov ax,4c00h int 21h
END START
I have a variable called key, defined as key db "A$".
inside the program i change its value to "B" and display, still i get the same initial value which is "A". Can somebody help please?, my prog is as follows:
DOSSEG
.MODEL SMALL
.STACK 200h
.data
key db "A$"
.CODE
START:
mov bx,offset key
mov byte ptr[bx],"B"
inc bx
mov byte ptr[bx],"$"
mov ax,seg key
mov ds,ax
mov ah,9
mov dx,offset key
int 21h
mov ax,4c00h int 21h
END START