Jump to content

hello all I need some help


sixpacka

Recommended Posts

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

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

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

  • 4 months later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.