Assume no syntax e
ors and all partial programs are co
ect and can be run.
Negative numbers are not accepted as final answers.
1. The largest unsigned octal number in a WORD is N8 = _________
2. Complete the following table with hexadecimal numbers only:
XXXXXXXXXXEAX
PSEUDO CODE
32
25
24
17
16
9
8
1
EAX := 7FED90Ah
AX := 3AACh
AH := 2Fh
AL := 250d
AL := 5*AL
XXXXXXXXXX____
XXXXXXXXXX = N10/M10 => / N16/M16 where N10 = _____, M10 = ________
and
N16 = _________ XXXXXXXXXXM16 = _________ .
XXXXXXXXXX______
4. Solve 15 = (0.a1 a2 ...an )5 = ______________
XXXXXXXXXX25
5. The additive inverse of the dword 9EFF3A16 is ______________
XXXXXXXXXX_____
XXXXXXXXXX => (0.a1 a2 ...an )10 = __________
7. Write the following expression as a single floating point number:
XXXXXXXXXX) = N E M ___________ where N and M are integers.
8. Assume the instruction is ca
ied out: fdiv st(5), st .Complete the table:
REGISTER
BEFORE EXECUTION
AFTER EXECUTION
ST
25.0
ST(1)
35.0
ST(2)
40.0
ST(3)
0
ST(4)
10.0
ST(5)
100
ST(6)
5.0
ST(7)
10.0
9. Complete the table below. Use only hexadecimal numbers only.
AL INSTRUCTIONS
ebx
1
2
3
4
5
6
7
8
9
10
11
mov eax, 6h
mov ebx, 2E0D61Eh
mov [eax], ebx
mov eax, 4h
mov ebx, 7942h
mov [eax], ebx
mov ebx, 5
mov ebx, [ebx]
mov eax, 5h
mov ebx, 'Ouch'
mov eax, 1
mov [eax], ebx
10. Assume x = XXXXXXXXXXand the two numbers are in a DWORD. Find x = __________
11. Complete the table below. Use only hexadecimal numbers only.
PSEUDO CODE INSTRUCTIONS
AX
AX:= 46FDh
AX:= AX*AX
AX;= AX*AX
AX:=AX*AX
AH:=AH*AH
AL:= AL*AL
AL:= AH*AL
12.Complete the table below with floating point numbers.
.DATA
x real XXXXXXXXXX
fstp x
REGISTER
BEFORE EXECUTION
X
AFTER EXECUTION
X
ST
10.0
ST(1)
15.0
ST(2)
20.0
ST(3)
25.0
ST(4)
ST(5)
ST(6)
ST(7)
13. Complete the table below. Use only hexadecimal numbers only
AL CODE
AX
EBX
STACK
mov ax, 5D6h
push ax
pushw 3467h
mov ebx,3ABCD0h
push ebx
pop ax
pop ebx
14. Given the string ˈBirds fly!ˈ Convert this string to its ASCII VALUES: ___________
15. Complete the following table in hexadecimal numbers only:
INSTRUCTIONS
eax
ebx
BYTES:
9
10
11
12
13
14
15
16
17
mov eax, 2ACB16h
mov ebx, 9d
add ebx, 1d
mov [ebx], eax
add [ebx], ebx
add eax, ebx
16.
mov n, 1
mov x, 0
egin: cmp n, 10
jg end
mov eax, x
add eax, n
mov x, eax
mov eax, n
add eax, 1
mov n, eax
jmp begin
end: ;
The partial program will finally contain in x the decimal number XXXXXXXXXX____________ ______