Question: Converting between ASCII and integer values The purpose of this assignment is to give you practice with converting back and forth between integer and ASCII

Converting between ASCII and integer values
The purpose of this assignment is to give you practice with converting back and forth between integer and ASCII representations of numbers.
Steps:
Open the Online Assembler
Near the top of the source code file, use comments to place your name into the code for credit (No name, no credit!)
Make sure every line of code you write has comments to explain what you are doing!
Follow the specifications below to get full credit for the assignment. Any errors or warnings will result in zero points for the code line in question:
SPECIFICATIONS
For the first checkpoint, you are expected to do the following before we get to the .text section:
Reserve 2-bytes of uninitialized data called "inp_buf" to hold our keyboard input
Reserve 1-byte of uninitialized data called "res" to hold our integer representation of input
Reserve 2-bytes of uninitialized data called "out_buf" to hold the output string of the input that was incremented (ASCII representation)
Description of functionality
Your program should assume a 2-digit number (value 10-98) being typed in the stdin box before running. Your program should retrieve this number and place it into the "inp_buf" reference above.
Expected Output
For this first checkpoint, we are simply setting up the uninitialized, and initialized, data and setting up our input. There is no output...yet.
You should also have no errors or warnings.
!!!!! IMPORTANT!!!!!! Only utilizes the NASM instructions: and, or, xor, shr, shl, mov, int, add, sub, mul, div, inc, byte. in the .text portion of the program.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!