HI...recently i have write a program that require a user key in a string of words and then display only the second character of the words on the screen...im am using TASM and TLINK...i only know that 0AH if for accept string and 02H is for display single character...but i have no idea to do it...could anyone can help me? TQ so much. This is my code...
but it got error...can anyone help me to solve this? TQ
.model small
.stack 64
.data
prompt1 db "Please Enter String:$"
prompt2 db "The second character of string:$"
storeroom label byte
max db 20
actual db ?
data_input db 20 dup("")
;**********************************************
.code
main proc far
mov ax,@data;
mov ds,ax;
mov ah,09h;
lea dx,prompt1;
int 21h;
mov ah,0ah;
lea dx,storeroom;
int 21h;
mov ah,09h
lea dx,prompt2;
int 21h;
mov ah,02h;
mov dl,data_input+1;
int 21h;
main endp;
end main;