i made the rountine or the functions in javascript i just dont know how to do it in assembly..
%include "asm_io.inc"
.data
prompt1 db "Enter string (max of 80 characters): ", $
prompt2 db "Do you want to continue (y/n)? ", $
error1 db "Error: Null input, please try again ",$
error2 db "Error: No string terminator, please try again ",$
.code
if (string == ""){
message "Error: Null input, please try again ", $}
else{
if (string.length > 80) {
message "You have exceeded the maximum length, please try again ",$}
else {
for (i = 0; i < string.length; i++)
if ((string.charAt(i)) != "!") {
if ((string.charAt(i)) != "?") {
intCount = intCount + 1;
elseif (string.length == intCount){
message "Error: No string terminator, please try again ", $
}
else
message "string"}
else
message (palindrome)}
}
}
Thanks in advance...hope somebody can help me out...
