hi guys
i'm trying to write a code that will ask a user to input a string and then check to see if its a palindrome
when trying to run what i have done so far i get an illegal instruction error. i know its something to do with 'get input value' part but i dont know what. also could someone tell me if my inString variable is set correctly.. its supposed to reserve space in memory for 20 char's and a carriage return
JMP START
chword DB cr,lf,'Enter a word to see if its a palindrome $'
isNotP DB cr,lf,'is not a palindrome$'
isP DB cr,lf,'is a palindrome$'
inString DB cr,lf, 20,?,' $'
Start:
;DISPLAY THE FIRST MESSAGE
LEA DX,chword
MOV AH,9
INT 21H
;GET INPUT VALUE
LEA DX,inString
MOV AH,0AH
INT 21H
i have only been learning assembly a few weeks and its not going too good, i think large class sizes at uni and a lack of proper explanation is my biggest problem, so if anyone is willing to help it would be greatly apreciated:cheesy: