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 bytes of uninitialized data called "inpbuf" to hold our keyboard input
Reserve byte of uninitialized data called "res" to hold our integer representation of input
Reserve bytes of uninitialized data called "outbuf" to hold the output string of the input that was incremented ASCII representation
Description of functionality
Your program should assume a digit number value being typed in the stdin box before running. Your program should retrieve this number and place it into the "inpbuf" 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
