





Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!






ECE 267 ME2 Practice Problems
a) push ebx b) ret c) mov [ebx],al d) call Procedure
a) LOCAL directive used in procedures creates stack frames b) LOCAL directive used in macros generates unique label names c) USES directive causes push/pop instructions to be inserted in the procedure code d) USES directive specifies which registers are being accessed within the procedure e) none of the above
FPU that replace this value with X -^3 :
Procedure1 PROC LOCAL Array[16]:DWORD mov Array[12],- mov Array[60],ebx call Procedure ret Procedure1 ENDP
.IF (AL >= -1) && (AL < 100) mov AL, .ENDIF
mFloat_Div fnum, fden, fresult
Procedure1 PROC LOCAL Array[256]:DWORD . . . mov eax,Array[10] . . . ret Procedure1 ENDP
Procedure2 PROC USES eax ecx . . . . ret Procedure2 ENDP
finit fld X fld X fld X fld X fmul fdiv fadd fstp X
a) X3 ¨ X2 + 1/X b) X3 ¨ 2.0X c) X3 ¨ X1 + 1/X d) X3 ¨ 2.0X
a) shl eax,2^ b) mov ebx, mul ebx
c) ror eax, add eax, rol eax,
d) mov X,eax fmul 4. mov eax,X
Procedure1 PROC LOCAL Array[16]:DWORD mov eax,Array[0] mov ebx,Array[7] call Procedure ret Procedure1 ENDP