Professional Documents
Culture Documents
Palindrome in Microprocessor
Palindrome in Microprocessor
$' $'
data ends
code segment
int 21h
LEA SI,kb_data
LEA SI,kb_data
CALL palindrome
mov dl,0h AGAIN: MOV AL,[SI] MOV BL,[di] CMP al,bl JNZ skip INC SI dec di dec cl JNZ AGAIN RET
skip:
MOV DL,01H
RET
palindrome ENDP