Could you pls help me answer this question:
- Please take a look at my small Assembly program that reads a tring from keyboard, then displays all the characters that are not uper-case letters in reverse order:
tb1 db 'Pls enter a string, enter to finish $'
tb2 db 10,13,'The characters that are not uper-case : $'
xau db 80 dup(?)
mov ds, ax
mov es, ax
nhap: mov ah,1
thoi: mov ah,9
The code above runs very well, even though i did not use the Clear Direction Flag (cld) instruction after the instruction in red (lea di,xau)
The string processing is still in forward direction.
The question is that: Why?
I appreciate your help.