flat assembler
Message board for the users of flat assembler.

Index > DOS > CLI Input

Author
Thread Post new topic Reply to topic
GhostXoPCorp



Joined: 13 Dec 2008
Posts: 199
Location: 01F0:0100
GhostXoPCorp
ok i have come to the last question, i tried the whole cmpsb and it was to hard to use, which goes for for what to compare to what, ah forget it, so could someone give me an example as to how to get input and comparing the input with 'help' andif not equal jump to var stuff like that, if you could give me a complete code like that, i will have no more questions, for the basic questions.

_________________
Oh that divide overflow. Just jumps out of the bushes every time to scare the day lights out of me.
Post 15 Dec 2008, 00:13
View user's profile Send private message Reply with quote
ManOfSteel



Joined: 02 Feb 2005
Posts: 1154
ManOfSteel
Try this:

Code:
HlpCmdStr db 'help',0

Cmd1:
cld
mov si,Cmd       ; user input buffer
mov di,HlpCmdStr ; command string address
mov cx,5
repe cmpsb
jne Cmd2         ; check 2nd command in the CLI
; display help and end

Cmd2:
...
    
Post 15 Dec 2008, 09:36
View user's profile Send private message Reply with quote
rCX



Joined: 29 Jul 2007
Posts: 166
Location: Maryland, USA
rCX
You could also try this previous thread.
Post 16 Dec 2008, 18:07
View user's profile Send private message Reply with quote
GhostXoPCorp



Joined: 13 Dec 2008
Posts: 199
Location: 01F0:0100
GhostXoPCorp
this looks much more simple to me. thanks man of steel

_________________
Oh that divide overflow. Just jumps out of the bushes every time to scare the day lights out of me.
Post 17 Dec 2008, 15:19
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar.

Powered by rwasa.