HI,I'M A NEW LEARNER OF ASSEMBLY LANGUAGE
I'M TRYING TO READ A STRING AND TO DISPLAY IT ON THE SCREEN BUT I'M GETTING SOME STRANGE OUTPUT,CAN ANY ONE HELP ME OUT???

.MODEL SMALL
.STACK
.DATA
MSG3 DB "ENTER A WORD:$"
STR DB 20 DUP(?)
.CODE
MOV AX,@DATA
MOV DS,AX
LEA DX,MSG3
MOV AH,09H
INT 21H
LEA DX,STR
MOV AH,0AH
INT 21H

LEA DX,STR
MOV AH,09H
INT 21H
MOV AH,4CH
INT 21H
END
Posted on 2009-05-13 04:50:04 by rahul36
I believe you should look into this piece and see why it doesn't work:

LEA DX,STR
MOV AH,0AH
INT 21H

Input is a little different from Output. Search Google "INT 21h / AH = 0Ah" and post what you find and just like Lowe's: Let's build it together.
Posted on 2009-05-13 11:55:58 by JimmyClif
What's wrong with all the caps?
Posted on 2009-05-13 11:59:32 by ChaperonNoir

What's wrong with all the caps?


It's just a preference. I code Assembly all in CAPS TOO :P
Posted on 2009-05-13 15:07:45 by XCHG
CODING IN CAPS MAKES YOUR ASSEMBLY CODE MORE POWERFUL. OF COURSE EVERYONE KNOWS THAT.
BUT I WAS REFERING TO "THIS" USE OF CAPS.

Posted on 2009-05-14 12:50:18 by ChaperonNoir

BUT I WAS REFERING TO "THIS" USE OF CAPS.


Writing everything in caps can make it harder to read, and on the internet it can be seen as "shouting" everything out.
Posted on 2009-05-14 13:27:25 by SpooK

CODING IN CAPS MAKES YOUR ASSEMBLY CODE MORE POWERFUL. OF COURSE EVERYONE KNOWS THAT.
BUT I WAS REFERING TO "THIS" USE OF CAPS.




Oh yeah I just saw that his post is all in caps lol. Yeah dude, what's that all about :roll:
Posted on 2009-05-15 08:10:39 by XCHG

CODING IN CAPS MAKES YOUR ASSEMBLY CODE MORE POWERFUL.


Now who needs a new signature? :)
Posted on 2009-05-15 12:16:19 by JimmyClif