Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Complete the following table, using only hexadecimal numbers in EAX: ASSEMBLY CODE EAX mov eax, 2DF3Fh mov eax, 3122h mov eax, 1101101b mov eax,

1. Complete the following table, using only hexadecimal numbers in EAX:

ASSEMBLY CODE EAX

mov eax, 2DF3Fh

mov eax, 3122h

mov eax, 1101101b

mov eax, 434789d

mov eax, 4EFA1101h

mov eax 2675411o

2. The hexadecimal additive inverse of 2EF10124h of type DWORD is N16 = ___________

3. Complete the following table, using only hexadecimal numbers in the table.

ASSEMBLY LANGUAGE

EAX

X

EDX

mov eax, 78335891d

mov x, 3228d

mov edx,0

div x

4. Complete the following table using only hexadecimal numbers in the table.

P = ((((2*7 + 5)*7 + 3)*7 -1 )*7 + 4)*7 -2

PSEUDO-CODE

AL PSEUDO-CODE

ASSEMBLY LANGUAGE

P

EAX

X

X:= 7

X := 7

mov x, 7

P:= 2

P := 2

mov p, 2

P:= P*X + 5

EAX:= P

mov eax, p

EAX:= EAX*X

mul x

EAX:= EAX + 5

add eax, 5

P:= EAX

mov p, eax

P := P*X + 3

EAX:= P

mov eax, p

EAX:= EAX*X

mul x

EAX:= EAX + 3

add eax, 3

P:= EAX

mov p, eax

P:= P*X -1

EAX:= P

mov eax, p

EAX:= EAX*X

mul x

EAX:= EAX -1

add eax, -1

P:= EAX

mov p, eax

P:= P*X + 4

EAX:= P

mov eax, p

EAX:= EAX*X

mul x

EAX:= EAX + 4

add eax, 4

P:= EAX

mov p, eax

P:= P*X - 2

EAX:= P

mov eax, p

EAX:= EAX*X

mul x

EAX:= EAX -2

add eax, -2

P:= EAX

mov p, eax

5.

mov n, 1

mov t, 2

while: cmp n, 7

jge end

mov eax, t

add eax, n

mov t, eax

mov eax, n

add eax, 2

mov n, eax

jmp while

end:

Assume the above partial program was run. When completed the final value of t is (decimal)

6. Complete the table with binary numbers only:

AX:

0

1

1

1

1

1

1

0

1

1

0

1

0

0

0

1

BX:

1

0

0

1

1

1

0

0

0

1

0

1

1

0

1

1

and ax,bx

7. Complete the table with binary numbers only:

AX

0

1

1

1

1

1

1

0

1

1

0

1

0

0

0

1

BX

1

0

0

1

1

1

0

0

0

1

0

1

1

0

1

1

or ax,bx

8. Complete the table with binary numbers only:

AX

0

1

1

1

1

1

1

0

1

1

0

1

0

0

0

1

BX

1

0

0

1

1

1

0

0

0

1

0

1

1

0

1

1

xor ax,bx

9. Assume CX contains an arbitrary number. Complete the table below with binary numbers only:

CX

x

x

x

x

x

x

x

x

x

x

x

x

x

x

x

x

CX

x

x

x

x

x

x

x

x

x

x

x

x

x

x

x

x

xor cx,cx

10. Complete the table below only using hexadecimal numbers:

AL CODE

EBX

EAX

[EAX]

mov eax, 2567922

mov ebx, 2567922h

mov [eax], eax

mov ebx, [eax]

11.

mov ax,32757d

cmp ax,2d

jnge xyz

A jump occurs : (a). True ____ (b). False ______

12. The smallest signed 16 bit decimal number is N10 = _________

13 The largest unsigned 8 bit decimal number is N10= _______

14. Complete the table below only using hexadecimal numbers:

AL INSTRUCTIONS

eax

Ebx

BYTES:

1

2

3

4

5

6

7

8

mov eax, 2h

mov ebx, 7D12Eh

mov [eax], ebx

mov eax, 4h

mov ebx, 568923h

mov [eax], ebx

mov ebx, 3h

mov [eax], ebx

15. X DWORD ?

Y DWORD ?

PSEUDO-CODE Complete the table below only using octal numbers:

X:= 23657O

X

Y:= - X

Y

EAX:= X + Y

EAX

16. Complete the following table, using only hexadecimal numbers.

ASSEMBLY LANGUAGE

AX

mov ax, 1001 1011 1001 0101b

ror ax, 8

shl ax, 1

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

=+1. Who will receive the final evaluation?

Answered: 1 week ago