Question: Provide the appropriate assembly directives for a proper memory alignment. These directives should result in a minimum amount of used memory. If no directive is

Provide the appropriate assembly directives for a proper memory alignment. These
directives should result in a minimum amount of used memory. If no directive is needed, leave
blank.
.data
number1: .word -7
array1: .byte 1,2,3,4,k
@ assembly directive 1
array2: .hword 10,15
@ assembly directive 3
number2: .word 0x12345678
number3: .byte 0b001.
________________________ @ assembly directive 2
number4: .byte -54
b. For the completed part a., sketch the memory map. Assume word number1 starts at 0x...4c.
Mark the starting and ending address for each of the labels (constants). Check that the starting
address is aligned for the data sitting in it. You do not need to provide the memory contents.

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