Question
Write an assembly language program in YASM to convert tetradecimal/ASCII base 14 string to integers base 10 and integers base 10 to tetradecimal/ASCII base 14
Write an assembly language program in YASM to convert tetradecimal/ASCII base 14 string to integers base 10 and integers base 10 to tetradecimal/ASCII base 14 strings. Using the provided main, the program has four steps are follows:
2. Write the code to convert an integer into a string of ASCII digits representing the tetradecimal value (NULL terminated). This code should be placed in the provided main at the marked location (step #2) and will convert the integer stored in the variable iNum1 into a string num1String (tetradecimal representation).
; ----- ; STEP #2 ; Convert the integer (iNum1) into a tetradecimal/ASCII string ; which should be stored into the 'num1String' ; Note, 137,799 (base-10) = 3830B (base-14) ; DO NOT USE MACRO HERE!! ; YOUR CODE GOES HERE Step 2 ; ----- ; Display a simple header and then the ASCII/tetradecimal string. printString firstNumMul printString num1String ; ********************************************************************************** ; Next, repeatedly call the macro on each value in an array. printString hdr2 ; ==================================================
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started