Question
Write a assembly code that contains the following integer definitions: int1: an 8-bit unsigned integer initialized to 11h. int2: an 8-bit signed integer initialized to
Write a assembly code that contains the following integer definitions:
int1: an 8-bit unsigned integer initialized to 11h.
int2: an 8-bit signed integer initialized to -20
int3: a 16-bit unsigned integer initialized to 4000h
int4: a 16-bit signed integer initialized to +1234
int5: a 32-bit unsigned integer initialized to 0ABCDEF1h
int6: a 32-bit signed integer initialized to -1234578
a) Use appropriate directives to declare your integers
b) What is the total number of bytes reserved for your data declaration?
c) The following table shows how your integers values are stored in memory, where index points to the first byte stored for the first integer.
1. Identify the storage indexes for each of the integers you declared (int1 int6)
2. Explain the content of the corresponding memory locations. RECALL that intel uses little endian architecture
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