Jump to content

hello all I need some help

Featured Replies

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

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.

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 :)

  • 4 months later...

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.

Archived

This topic is now archived and is closed to further replies.

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.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.