Question: (This is assembly language) 1. Do a-j. Find the initial values that the assembler will generate for each directive below. Write your answer using 2

(This is assembly language) 1. Do a-j. Find the initial values that the assembler will generate for each directive below. Write your answer using 2 hex digits for each byte generated. (Hint: You can check an answer by putting the directive in the data section of the sample program, and then looking at the listing file after assembly.) Example program from beginning of texbook section included below.

a. byte1 BYTE 10110111b

b. byte2 BYTE 33q

c. byte3 BYTE 0B7h

d. byte4 BYTE 253

e. byte5 BYTE 108

f. byte6 BYTE -73

g. byte7 BYTE 'D'

h. byte8 BYTE 'd'

i. byte9 BYTE "Mary's program"

j. byte10 BYTE 5 DUP ("")

(This is assembly language) 1. Do a-j. Find the initial values that

; Example assembly language program ; adds 158 to number in memory ; Author: R. Detmer ; Date: 6/2013 586 MODEL FLAT .STACK 4096 ; reserve 4096-byte stack DATA number DWORD -105 sum DWORD? ; reserve storage for data .CODE main PROC ; start of main program code mov eax, number add eax, 158 mov sum, eax ; first number to EAX ; add 158 ; sum to memory ; exit with return code 0 mov eax,0 ret main ENDP END ; Example assembly language program ; adds 158 to number in memory ; Author: R. Detmer ; Date: 6/2013 586 MODEL FLAT .STACK 4096 ; reserve 4096-byte stack DATA number DWORD -105 sum DWORD? ; reserve storage for data .CODE main PROC ; start of main program code mov eax, number add eax, 158 mov sum, eax ; first number to EAX ; add 158 ; sum to memory ; exit with return code 0 mov eax,0 ret main ENDP END

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!