OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Mar 28, 2024 1:30 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: How would I get user input in Assembly?
PostPosted: Thu Jan 12, 2017 3:53 am 
Offline
Member
Member

Joined: Wed Jan 11, 2017 3:29 pm
Posts: 27
Hey guys. I want to get user input from Assembly so I can compare the string.

What function and interrupt would I use?

I know the CMP instruction but how would I compare the string for the function and interrupt I would use?

Can you tell me what instructions I may need? I want more than 5 characters as well if that's possible please. I am trying to make a shell.

Thanks
John


Top
 Profile  
 
 Post subject: Re: How would I get user input in Assembly?
PostPosted: Thu Jan 12, 2017 4:06 am 
Offline
Member
Member

Joined: Tue Mar 04, 2014 5:27 am
Posts: 1108
Duplicate post?


Top
 Profile  
 
 Post subject: Re: How would I get user input in Assembly?
PostPosted: Thu Jan 12, 2017 4:06 am 
Offline
Member
Member

Joined: Mon Mar 25, 2013 7:01 pm
Posts: 5100
TheDev100 wrote:
What function and interrupt would I use?

If you want BIOS functions, check RBIL. You probably want INT 0x16 AH=0x00.

TheDev100 wrote:
I know the CMP instruction but how would I compare the string for the function and interrupt I would use?

There are no BIOS functions for string comparisons. You'll have to write that yourself.

TheDev100 wrote:
Can you tell me what instructions I may need?

Probably things like MOV, CMP, and maybe REP CMPSB.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 35 guests


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 post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group