CPE103 Finals Reviewer
CPE103 Finals Reviewer
Crossword Puzzle
1. It is designed to create the required data and perform all appropriate memory allocation and data formatting for
little endian. ASSEMBLER DIRECTIVES
2. It indicates that it is a register to register transfer. MOD 11
3. In protected mode, a/an ________ that uses 8-byte descriptors to describe each of the interrupts replaces the
vector table. INTERRUPT DESCRIPTOR TABLE
4. It allows the programmer to choose where the processor fetches its next instruction form. PROGRAM
TRANSFER
5. Any action done to the computer is considered as _______. INTERRUPT
6. In division, what register stores the quotient? ACCUMULATOR
7. It is the language only understood by the computer. MACHINE LANGUAGE
8. What mod will direct addressing mode will be possible? MOD 00
9. A directive that indicates the start of the procedure. PROC
10. An example of this interrupt is when you divide a number by zero. INTERNAL SOFTWARE INTERRUPT
11. It indicates that only 1 data segment is used with 1 code segment for a total of 128 KB of memory. SMALL
12. An instruction that retains the sign of the register. SHIFT ARITHMETIC RIGHT
13. Which register is not literally removed from the stack after a POPA instruction? STACK POINTER
14. An interrupt that always causes an interrupt sequence when it is activated. NON-MASKABLE INTERRUPT
15. A directive that tells the assembler what names have been chosen for the code, data, extra and stack segment.
ASSUME
16. These are set of opcodes or hex codes to perform a specific task. PROGRAM
17. It is a collection of bytes, words, long words that can be up to 64 KB in length. STRING
18. It is used to change a specific bit within the flag register and to externally synchronize the processor.
PROCESSOR CONTROL
19. Which part of the machine code indicates the instruction? OPCODE
20. It is an instruction to set an output string device. OUTS
OT 2
Crossword Puzzle
Matching Type
1. Proceeds to the label if the result of CMP is zero – JE ODD (Jump if equal/zero)
2. Divisible by 2 – SHR AL, 01H
3. Performs multiple signed values – IMUL BX
4. Used in LOOP – DEC DX (decrement)
5. Performs one’s complement – NOT DX
6. Similar to a ring counter – RCR BL, CL (Rotate through carry right)
7. Accepts string data – INS 80H, DX (input from string)
8. Appends zero to the register – MOVZX ECX, CX
9. Writes 32-bit register to stack – PUSHDW EBX (push double-word)
10. Clears a register – XOR AX, AX
11. Transfers negative numbers – MOVSX ECX, CX
12. Checks if equal – CMP SP, DX
13. Display a string output – OUTS DX, 80H
14. Multiplies negative numbers – IMUL BX
15. Performs two’s complement – NEG DX
16. Removes all contents of stack – POPA
17. Powers of 2 – DAL, 05H
18. Used as counter – INC AL
19. Used in conjunction with JNZ, JNE – CMP SP, DX
20. Divides signed numbers – IDIV BX
21. Reserves space in the memory – MOVSX ECX, CX
Enumeration
Types of Interrupts
Example of Directives
Instruction Types
Hand coding
1100 0000 0010 1110 1101 1010 1111 1100 0000 0111
C0 2E DA FC 07
0000 1111 1011 1111 1001 0001 1011 1010 1101 0101
0F BF 91 BA D5
1100 0111 1000 0110 1110 1101 1100 1011 1111 1101 1100 1001
C7 86 ED CB FD C9
1000 0001 0011 1110 1011 1110 1000 1100 1111 1101 1010 1110
81 3E BE 8C FD AE
5. DIV [BP+DI+7EFDH]