Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

input name in order

The keyboard input is first name, middle name, then last name in one line. The display in order last name, first nema, then middle name. Changing the oder of the input basically speaking. I need help to modify my code. I currently using GetStr to read the whole line. I am confused how to display the name in order. Thanks. This is where I am now.

INCLUDE PCMAC.INC
.MODEL SMALL
.586

.STACK 100h

.DATA
MAXBUF EQU 100
GetBuf DB MAXBUF;
GetCnt DB ?;
ChatStr DB MAXBUF DUP (?);
Blank DB 58;

.CODE

Main PROC
mov ax, @data
mov ds, ax
_GetStr GetBuf
_PutCh 10;




Done:

_Exit
Main ENDP

END Main
Sign In or Register to comment.