Question: Assignment 2 Assembly Language Fundamentals Complete the following problems based on what we have learned from Chapters 1 - 3. Some of these problems require

Assignment 2 Assembly Language Fundamentals

Complete the following problems based on what we have learned from Chapters 1 - 3. Some of these problems require code snippets, so only include the relevant portions from the code. You should use your project to test the code examples.

1. Given the number 456789ABh, list out its byte values in little-endian order.

2. Declare an array of 120 uninitialized unsigned double word values.

3. Declare an array of bytes and initialize it to the first 5 letters of the alphabet.

4. Declare a 32-bit signed integer variable and initialize it with the smallest possible negative decimal value. In memory, what are the hexadecimal values that are shown.

5. Declare a 32-bit signed integer variable and initialize it with the value 234 (base 10). In memory, what are the hexadecimal values shown?

6. Declare an uninitialized array of 50 signed doublewords named dArray.

8. Declare an array of 20 unsigned bytes named bArray and initialize all elements to zero.

9. Show the order of individual bytes in memory (lowest to highest) for the following doubleword variable: val1 DWORD 87654321h

10. Using the AddTwo program from Section 3.2 as a reference, write a program that calculates the following expression, using registers: A = (A+B) - (C+D). Assign integer values to the EAX, EBX, ECX, and EDX registers.

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 Databases Questions!