Question
Write an assembly language program in YASM x86-64 to convert tetradecimal/ASCII base 14 string to integers base 10 and integers base 10 to tetradecimal/ASCII base
Write an assembly language program in YASM x86-64 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:
1. Write the code to convert a string of ASCII digits representing an tetradeciaml value into an integer (double-word sized). This code should be placed in the provided main at the marked location (step #1) and will convert the string dStr1 (tetradecimal representation) into an integer stored in the variable iNum1.
; ----- ; STEP #1 ; Convert tetradecimal/ASCII NULL terminated string at 'dStr1' ; into an integer which should be placed into 'iNum1' ; Note, 12a4D (base-14) = 45,933 (base-10) ; DO NOT USE MACRO HERE!! ; YOUR STEP #1 CODE GOES HERE
; ----- ; Perform (iNum1 * 3) operation. ; Note, 45,933 (base-10) * 3 (base-10) = 137,799 (base-10) mov eax, dword [iNum1] mov ebx, 3 mul ebx mov dword [iNum1], eax
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