True/False questions( I want to know why it is True or False, need details) A, A
ID: 2085796 • Letter: T
Question
True/False questions( I want to know why it is True or False, need details)
A, Assembly language directive "DS32 4" allocates 16 bytes in memory.
B. Assembly language directive "DS8 3" allocates 3 bytes in memory and initializes them with value 0x00.
C. Assembly language directive "DS16 1" allocates 4 bytes in memory.
D. Assembly language directive "DS8 4" allocates 4bytes in memory and initilaizes them with value 0x00.
E. The instruction MOV. B #145, &0x0300 requires 3 words to be encoded.
F. Assembly language directive "DS32 2" allocate 8 bytes in memory.
G. Assembly language directive "DS16 4" allocates 8 bytes in memory.
H. Assembly language directive "DS8 2" allocates 2 bytes in memory and initializes them with value 0x02.
I. The instruction MOV. B #45, &0x0300 requires 2 words to be encoded.
J. Assembly language directive "DS16 2" allocates 4 bytes in memory.
K. Assembly language directive "DS16 4" allocates one 16-bit word in memory and initializes it with value 4.
L. Assembly language directive "DS8 2" allocates one byte in memory and initializes it with value 2.
Explanation / Answer
A - TRUE.
As DS32 means 32 bit of data allocation. 32 bit = 4 byte.
So DS32 4 = 4 × 4 bytes = 16 bytes.
B- FALSE
DS8 means 8 bit or 1 byte of data allocation.
So DS8 3 means 1×3 bytes = 3 bytes. As they are used for uninitialized memory space. They initialize that with 0×3
C- FALSE
DS16 means 16 bit or 2 bytes of memory allocation.
So DS16 1 means 2 ×1 = 2 bytes. Hence 4 bytes is wrong.
D- FALSE.
DS8 4 means 1 × 4 = 4 bytes. It initializes with 0×4.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.