The following data segment starts at memory address 0x4400 (hexadecimal) .data p
ID: 3819001 • Letter: T
Question
The following data segment starts at memory address 0x4400 (hexadecimal)
.data
printString BYTE "Assembly is fun",0
moreBytes BYTE 28 DUP(0)
dateIssued DWORD ?
dueDate DWORD ?
elapsedTime WORD ?
What is the hexadecimal address of dueDate?
After the following MASM code is executed:
mov eax,52
mov ebx,17
mov ecx,23
add eax,ebx
sub eax,ecx
What is the value in the eax register (in decimal)?
What is the value in the ebx register (in decimal)?
What is the value in the ecx register (in decimal)?
Explanation / Answer
The address of the due date date =starting address+string bytes+more bytes+double word
=Starting address + 27(hex)
=0x4400+27
=0x4427
Address of the due date is 0x4427
Mov eax ,52//eax=52
Mov ebx,17//ebx=17
Mov ecx,23//ECX=23
Add eax,ebx//eax=eax+ebx
//Eax=52+17
//Eax=69
Sub eax,ecx
//Eax=eax-ecx
//69-23=46
Eax register value is70in decimal
Ebx value is 23 in decimal
Ecx register value is 35 in decimal
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.