sixpacka Posted March 6, 2006 Share Posted March 6, 2006 im doin a little project in school and i need help. heres what i have to do. i have to write a program in debug in asembly language that will read in 2 key strokes and the print whether th first or second had the larger ASCII value. im not askin anyone to do it for me i just need some help starting out. any help would be appreciated. thnks Link to comment Share on other sites More sharing options...
5614 Posted March 6, 2006 Share Posted March 6, 2006 Capture both inputs. Convert the character into ASCII. Run a logic size comparison (whatever you call it in assembly) where you compare the numerical size of the two. Display the larger value. Link to comment Share on other sites More sharing options...
Dave Posted March 10, 2006 Share Posted March 10, 2006 This shouldn't be a hard challenge. You can capture one input using the appropriate interrupt, then move this to a general registry. That takes 4 lines. Then input the other character (another 3 lines); the hardest part is comparing the values of the two registries. That can be done with the JL operator. The rest is easy Link to comment Share on other sites More sharing options...
mik60487 Posted July 30, 2006 Share Posted July 30, 2006 Code in say BASIC this taks be sure it works then look at a dump of code in assembler you will get a better idea of what is happening. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now