summary2

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

A stack is also called a FIFO structure (First-In, First-Out) because the last value put into the stack is always the first value taken out.

False

The MOVSX instruction is only used with unsigned integers.

False

The following instructions will set the Carry flag: mov al,0FEh sub al,2

False

Which library procedure reads a 32-bit signed decimal integer from standard input?

ReadInt

Which library procedure reads a string from standard input?

ReadString

By default, labels are visible only within the procedure in which they are declared.

True

Mechanically speaking, the CALL instruction pushes its return address on the stack and copies the called procedure's address into the instruction pointer.

True

The MOVSX instruction sign-extends an integer into a larger operand.

True

The USES operator, coupled with the PROC directive, lets you list the names of all registers modified within a procedure.

True

Which I/O device is used for standard input?

keyboard

ESP always points to the ______

last value to be added to, or pushed on, the top of stack.

Select the answer choice that best implements the following expression. Do not permit dword1, ECX, or EDX to be modified: eax = -dword1 + (edx - ecx) + 1

mov eax,dword1 neg eax mov ebx,edx sub ebx,ecx add eax,ebx inc eax

A/An ________ procedure call occurs when a called procedure calls another procedure before the first procedure returns.

nested

Adding 7Fh and 05h in an 8-bit register sets the Overflow flag.

true

The following instructions will set the Sign flag: mov al,0FEh sub al,2

true

What will be the value of EAX when the following sequence of instructions has executed? push 5 push 10 pop ebx pop eax

5.0 (with margin: 0)

Suppose that result is declared as DWORD, and the following MASM code is executed: mov eax,16 mov ebx,8 mov ecx,6 label5: add eax,ebx add ebx,2 loop label5 mov result,eax What is the value stored in the memory location named result?

94

Which library procedure locates the cursor at a specific row and column on the screen?

Gotoxy

Which library procedure writes a single character to standard output?

WriteChar

Which library procedure writes an unsigned 32-bit integer to standard output in hexadecimal format?

WriteHex

If the LOOP instruction sets ECX to zero, a jump to the destination label does take place.

false

MASM has built-in range checking for effective addresses.

false


Kaugnay na mga set ng pag-aaral

SCM 424: Multiple Regression Analysis

View Set

Clinical Anatomy - Upper Limb (disorders/pathology)

View Set

The Hindbrain - Psychology Exam 1

View Set

Mis Chapter 5, MIS Chapter 8, Chapter 9, MIS Chapter 10

View Set