Question
The following questions refer to this data segment (in x86 assembler language): .data var1 db 10h,20h var2 dw 1020h var3 db '4' var4 db '56'
The following questions refer to this data segment (in x86 assembler language):
.data
var1 db 10h,20h
var2 dw 1020h
var3 db '4'
var4 db '56'
var5 db '789','$'
Question 1: What is the total number of bytes required in memory to store the data declared by the five data defintions? (These answers are decimals)
A: 8 bytes B: 9 bytes C: 10 bytes D: 11 bytes E: 12 bytes
Question 2: How will the data defined by var1 appear in the memory in hex?
A: 0A14 B: 1020 C: 2010 D: 140A E: none of these answers
Question 3: How will the defined by var2 appear in the memory in hex?
A: 0A14 B: 1020 C: 2010 D: 140A E: none of these answers
Question 4: What is the offset into the Data Segment of the variable var4?
A: 9 bytes B: 8 bytes C: 7 bytes D: 6 bytes E: 5 bytes
Question 5: How many bytes will have been written to the standard output device after all these instructions have been executed? Answers are in decimal
mov dx, offset var3
mov ah, 9
int 21h
A: 1 byte B: 2 bytes C: 4 bytes D: 5 bytes E: 6 bytes
Question 6: Given the specific declarations of var1 through var5, which of the following would be an illegal 8086 instruction?
A: mov ax,[var2]
B: add [var3], bl
C: cmp cx, [var2]
D: sub [var3], dx
E: answer cannot be determined from information given
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