Assembly Language: Consider the following data section. .data SDWORD -300 start
ID: 669696 • Letter: A
Question
Assembly Language: Consider the following data section.
.data
SDWORD -300
start BYTE 11010011b, 2 DUP(1), 0
array SWORD 0A1CDh, -3
COUNT1 = ($-array)
COUNT2 = ($-start)
a. What is the value of COUNT1? ________
b. What is the value of COUNT2? ________
c. The positive decimal value 300 is equal to 12C16. What is the 32-bit signed (two’s complement) representation of –300?
d. The entire sequence of data definitions at the beginning of this problem will be stored in memory as a sequence of 12 bytes. Write the byte values in hexadecimal, starting from the byte at the lowest memory address.
Explanation / Answer
Hi,
Below is the solution to your problem:
a.Value of COUNT1=2 DUP(1), 0;Define 2 bytes initialized to 1,Hence value of the variable COUNT1
b.Value of COUNT2= 0A1CDh
Invert the digits.
And add one.
Now converting it back to HEX 0xFFFFFD3
d.I am not sure of this.
Hope that helps...HAPPY ANSWERING!!!!!!!
SWORD (signed word) Allocates signed numbers from 32,768 to +32,767.Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.