Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database And Expert Systems Applications 33rd International Conference Dexa 2022 Vienna Austria August 22 24 2022 Proceedings Part 1 Lncs 13426

Authors: Christine Strauss ,Alfredo Cuzzocrea ,Gabriele Kotsis ,A Min Tjoa ,Ismail Khalil

1st Edition

3031124227, 978-3031124228

More Books

Students also viewed these Databases questions

Question

Different formulas for mathematical core areas.

Answered: 1 week ago