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
How would I get user input in Assembly?
Re: How would I get user input in Assembly?
Duplicate post?
-
- Member
- Posts: 5513
- Joined: Mon Mar 25, 2013 7:01 pm
Re: How would I get user input in Assembly?
If you want BIOS functions, check RBIL. You probably want INT 0x16 AH=0x00.TheDev100 wrote:What function and interrupt would I use?
There are no BIOS functions for string comparisons. You'll have to write that yourself.TheDev100 wrote:I know the CMP instruction but how would I compare the string for the function and interrupt I would use?
Probably things like MOV, CMP, and maybe REP CMPSB.TheDev100 wrote:Can you tell me what instructions I may need?