the prOgram is abOut inputting a string and then the result will be its reversed string..
for example: insecure
the result must be "erucesni"
i have my cOde belOw..
help me please..
--------------------------------------
[color=Red].MODEL SMALL
.STACK 100h
.DATA
MaxChars DB 10
NumChars DB 0
InputBuffer DB 'xxxx xxxx ' ; Room for 9 chars + CR
TextNumChars DB 'x',13,10,'$'
StringPrompt DB 'Type a line of text: $'
DisplayReverse DB 13,10,'Result: $',13,10
.CODE
start:
mov ax,@data
mov ds,ax
mov dx,OFFSET StringPrompt
mov ah,9
int 21h
mov dx,OFFSET MaxChars
mov ah,10
int 21h
mov dx,OFFSET DisplayReverse
mov ah,9
int 21h
mov si,OFFSET InputBuffer ; InputBuffer will
contain the entered characters
mov ah,4ch ; DOS terminate
program routine
mov al,0
int 21h
END start[/color]
-------------------------------
that's it..
help me please..
thanks..
for example: insecure
the result must be "erucesni"
i have my cOde belOw..
help me please..
--------------------------------------
[color=Red].MODEL SMALL
.STACK 100h
.DATA
MaxChars DB 10
NumChars DB 0
InputBuffer DB 'xxxx xxxx ' ; Room for 9 chars + CR
TextNumChars DB 'x',13,10,'$'
StringPrompt DB 'Type a line of text: $'
DisplayReverse DB 13,10,'Result: $',13,10
.CODE
start:
mov ax,@data
mov ds,ax
mov dx,OFFSET StringPrompt
mov ah,9
int 21h
mov dx,OFFSET MaxChars
mov ah,10
int 21h
mov dx,OFFSET DisplayReverse
mov ah,9
int 21h
mov si,OFFSET InputBuffer ; InputBuffer will
contain the entered characters
mov ah,4ch ; DOS terminate
program routine
mov al,0
int 21h
END start[/color]
-------------------------------
that's it..
help me please..
thanks..