Quiz 1 Flashcards
Simulate the given instructions and determine which among the choices is correct. initially
CF=0,AF=0,ZF=0,SF=0,PF=0
MOV AL, CD
MOV BL, B7
ADD AL, BL
CF=1, AF=1, ZF=0, SF=1, PF = 1
(11011)
Simulate the given Instructions and determine which among the choices is correct. initially
CF=0,AF=0,ZF=0,SF=0,PF=0
MOV AL, 3D
MOV BL, 8F
SUB AL, BL
CF=1, AF=1, ZF=0, SF=1, PF=0
11010
Simulate the given Instructions and determine which among the choices is correct. initially
CF=0,AF=0,ZF=0,SF=0,PF=0
MOV AL, 74
MOV BL, 3F
ADDAL, BL
MOVDL, AL
CF=0, AF=1, ZF=0, SF=1, PF=1
(01010)
Simulate the given instructions (below) and determine which among the choices is correct.
Initially CF=0; AF=0; ZF=0; SF=0; PF=0
MOV AL, B6
MOV BL, E5
ADD AL, BL
CF=1, AF=0, ZF=0, SF=1, PF=0
10010
Simulate the given instructions (below) and determine which among the choices is correct.
Initially CF=0; AF=0; ZF=0; SF=0; PF=0; DF=0; IF=0; OF=0; TF=0; NT=0; IOPL=00
1. MOV AL, BC
2. MOV BL, 48
3. ADD AL, BL
4. STD
5. STI
6. It is assumed that the task is nested.
7. It is assumed that the input/output privilege level is third to the highest.
8. It is assumed that the result exceeds the limit.
CF=1; AF=1; ZF=0; SF=0; PF=0; DF=1; IF=1; OF=1; TF=0; NT=1; IOPL=10
Mnemonic:
110001110110
(C76)
Simulate the given instructions (below) and determine which among the choices is correct.
Initially CF=0; AF=1; ZF=0; SF=0; PF=1; DF=0; IF=1; OF=0; TF=0; NT=1; IOPL=00
1.MOV AL, 83
2.MOV CL, AL
3.MOV BL, BE
4.SUB CL, BL
5. STC
6. CLI
8. It is assumed that there is overflow.
9. It is assumed that there is error.
HINT: sub destination, source; destination– source = difference; destination = difference
CF=1; AF=1; ZF=0; SF=1; PF=1; DF=0; IF=0; OF=1; TF=1; NT=1; IOPL=00
Mnemonic:
110110011100
(D9C)
Simulate the given instructions (below) and determine which among the choices is correct.
Initially CF=0; AF=0; ZF=0; SF=0; PF=0
MOV AL, B6
MOV BL, E5
ADD AL, BL
CF=1; AF=0; ZF=0; SF=1; PF=0
10010
Simulate the given instructions (below) and determine which among the choices is correct.
Initially CF=0; AF=1; ZF=0; SF=0; PF=1
MOV AL, AA
MOV CL, AL
MOV BL, FB
SUB CL, BL
HINT: sub destination, source; destination– source = difference; destination = difference
CF=1; AF=1; ZF=0; SF=1; PF=1
11011
Simulate the given instructions (below) and determine which among the choices is correct.
Initially CF=0; AF=0; ZF=0; SF=0; PF=0; DF=0; IF=0; OF=0; TF=0; NT=0; IOPL=00
1. MOV AL, DC
2. MOV BL, 12
3. ADD AL, BL
4. STD
5. STI
6. It is assumed that the task is nested.
7. It is assumed that the input/output privilege level is third to the lowest.
8. It is assumed that the result exceeds the limit.
CF=0; AF=0; ZF=0; SF=1; PF=1; DF=1; IF=1; OF=1; TF=0; NT=1; IOPL=01
Mnemonic:
000111110101
(1F5)
Simulate the given instructions (below) and determine which among the choices is correct.
Initially CF=0; AF=1; ZF=0; SF=0; PF=1; DF=0; IF=1; OF=0; TF=0;
1.MOV AL, C2
2.MOV CL, AL
3.MOV BL, FA
4.SUB CL, BL
5. STC
6. CLI
8. It is assumed that there is overflow.
9. It is assumed that there is error.
HINT: sub destination, source; destination– source = difference; destination = difference
CF=1; AF=0; ZF=0; SF=1; PF=1; DF=0; IF=0; OF=1; TF=1
Mnemonic:
(100110011)
(991)
Simulate the given instructions (below) and determine which among the choices is correct.
Initially CF=0; AF=1; ZF=0; SF=0; PF=1; DF=0; IF=1; OF=0; TF=0; NT=1; IOPL=00
1.MOV AL, BC
2.MOV CL, AL
3.MOV BL, 7D
4.ADD CL, BL
5. STC
6. CLI
8. It is assumed that there is overflow.
9. It is assumed that there is error.
10. It is assumed that the IOPL is second to the highest level.
11. STD
12. It is assumed that the task is nested.
HINT: sub destination, source; destination– source = difference; destination = difference
CF=1; AF=1; ZF=0; SF=0; PF=1; DF=1; IF=0; OF=1; TF=1; NT=1; IOPL=01
Mnemonic:
(110011011101)
(CDD)
Simulate the given instructions (below) and determine which among the choices is not correct.
Initially CF=0; AF=1; ZF=0; SF=0; PF=1; DF=0; IF=1; OF=0; TF=0; NT=1; IOPL=00
1.MOV AL, 8C
2.MOV CL, AL
3.MOV BL, 77
4.ADD CL, BL
5. STC
6. CLI
8. It is assumed that there is overflow.
9. It is assumed that there is error.
10. It is assumed that the IOPL is third to the highest level.
11. STD
12. It is assumed that the task is nested.
HINT: sub destination, source; destination– source = difference; destination = difference
CL=39
Simulate the given instructions (below) and determine which among the choices is not correct.
Initially CF=0; AF=1; ZF=0; SF=0; PF=1; DF=0; IF=1; OF=0; TF=0; NT=1; IOPL=00
1.MOV AL, 8C
2.MOV CL, AL
3.MOV BL, 77
4.ADD CL, BL
5. STC
6. CLI
8. It is assumed that there is overflow.
9. It is assumed that there is error.
10. It is assumed that the IOPL is third to the highest level.
11. STD
12. It is assumed that the task is nested.
HINT: sub destination, source; destination– source = difference; destination = difference
CL=39
Simulate the given instructions and determine which among the choices is correct.
Initially CF=0, AF=1, ZF=0, SF=0, PF=1
MOVAL, B7
MOVCL, AL
MOVBL, E8
SUB CL, AL
HINT: sub destination, source
destination-source= difference
destination=difference
CF=1;AF=1;ZF=0;SF=1;PF=1
11011
Simulate the given instructions and determine which among the choices is correct.
Initially CF=0,AF=0,ZF=0,SF=0,PF=0,DF=0,IF=0,OF=0,TF=0,NT=0,IOPL=00
MOVAL, FB
MOVBLB7
ADDAL, BL
STD
STI
It is assumed that the task is nested.
It is assumed that the input/output privilege level is second to the highest,
CF=1;AF=1;ZF=0;SF=1;PF=0;DF=1;IF=1;OF=0;TF=0;NT=1;IOPL=01
Mnemonic:
110101100101
(D65)
Simulate the given program 1. After executing instruction # 5, which among the choices is correct?
PROGRAM1:
Initially AX=0000; BX=0000; CX=0000; DX=0000;CF=0; BP=0BA8C ; SP currently pointing to
BP
1.MOV AX, 623C
2.MOV BX, ACD4
3.MOV CX, E7A8
4.MOV DX, F943
5.ADD AX, BX; destination=source+destination
6.PUSH AX
7.SUB CX, DX; destination=destination-source
8.PUSH CX
9.PUSH BX
10.PUSH DX
11.POP AX
12.POP BX
13.ADD AX, BX
14.PUSH AX
15.POP CX
16.POP DX
17. POP BX
BX=ACD4
Simulate the given program 1. After executing instruction # 6, which among the choices is correct?
PROGRAM1:
Initially AX=0000; BX=0000; CX=0000; DX=0000;CF=0; BP=0BA8C ; SP currently pointing to
BP
1.MOV AX, 623C
2.MOV BX, ACD4
3.MOV CX, E7A8
4.MOV DX, F943
5.ADD AX, BX; destination=source+destination
6.PUSH AX
7.SUB CX, DX; destination=destination-source
8.PUSH CX
9.PUSH BX
10.PUSH DX
11.POP AX
12.POP BX
13.ADD AX, BX
14.PUSH AX
15.POP CX
16.POP DX
17. POP BX
AX=0F10, CF=1, SP=0BA8A
Simulate the given program 1. After executing instruction # 1, which among the choices is correct?
PROGRAM1:
Initially AX=0000; BX=0000; CX=0000; DX=0000;CF=0; BP=0BA8C ; SP currently pointing to
BP
1.MOV AX, 623C
2.MOV BX, ACD4
3.MOV CX, E7A8
4.MOV DX, F943
5.ADD AX, BX; destination=source+destination
6.PUSH AX
7.SUB CX, DX; destination=destination-source
8.PUSH CX
9.PUSH BX
10.PUSH DX
11.POP AX
12.POP BX
13.ADD AX, BX
14.PUSH AX
15.POP CX
16.POP DX
17. POP BX
SP 0BA8C
Simulate the given program 1. After executing instruction # 10, which among the choices is correct?
PROGRAM1:
Initially AX=0000; BX=0000; CX=0000; DX=0000;CF=0; BP=0BA8C ; SP currently pointing to
BP
1.MOV AX, 623C
2.MOV BX, ACD4
3.MOV CX, E7A8
4.MOV DX, F943
5.ADD AX, BX; destination=source+destination
6.PUSH AX
7.SUB CX, DX; destination=destination-source
8.PUSH CX
9.PUSH BX
10.PUSH DX
11.POP AX
12.POP BX
13.ADD AX, BX
14.PUSH AX
15.POP CX
16.POP DX
17. POP BX
SP-1 0BA85
SP-2 OBA84
Simulate the given program 1. After executing instruction # 14, which among the choices is correct?
PROGRAM1:
Initially AX=0000; BX=0000; CX=0000; DX=0000;CF=0; BP=0BA8C ; SP currently pointing to
BP
1.MOV AX, 623C
2.MOV BX, ACD4
3.MOV CX, E7A8
4.MOV DX, F943
5.ADD AX, BX; destination=source+destination
6.PUSH AX
7.SUB CX, DX; destination=destination-source
8.PUSH CX
9.PUSH BX
10.PUSH DX
11.POP AX
12.POP BX
13.ADD AX, BX
14.PUSH AX
15.POP CX
16.POP DX
17. POP BX
AX=A617, CF=1; SP=0BA86
Which among the flags selects either the increment or decrement mode for the DI and/or SI registers during string operations?
1. Option 1
Parity Flag
2. Option 2
Direction Flag
3. Option 3
Interrupt Flag
4. Option 4
Trap Flag
Direction Flag
The most basic but complete microprocessor-based computer would consist of
1. Option 1
“CPU, memory, I/O, system bus”
2. Option 2
“CPU, memory, I/O, interrupt circuitry”
3. Option 3
“CPU, memory, I/O, timing circuitry”
4. Option 4
none of the choices
“CPU, memory, I/O, system bus”
First chip developed by Intel
1. Option 1
Intel 3101
2. Option 2
Intel 4004
3. Option 3
Intel 8080
4. Option 4
Intel 8086
Intel 4004
“A doubleword number, 66963286H, is to be stored into memory using little endian format starting at memory location 00100H. What would be the content of memory location 00103H?”
1. Option 1
96
2. Option 2
66
3. Option 3
32
4. Option 4
86
66
The invention of Integrated Circuit (IC) was credited to
(Note: this is a right minus wrong question)
- Option 1
Robert Noyce - Option 2
Jack Kilby - Option 3
William Shockley - Option 4
Ted Hoff
Robert Noyce
Jack Kilby
“Intel CPUs are also called __________ computers, while Motorola processors are called
__________ computers.”
- Option 1
little endian; big endian - Option 2
big endian; little endian - Option 3
little indian; big indian - Option 4
big indian; little indian
little endian; big endian
The world’s first 8-bit microprocessor.
- Option 1
8008 - Option 2
8080 - Option 3
6800 - Option 4
Z80
8008
Robert Noyce and Gordon Moore were the co-founders of ______?
(Note: This is a right minus wrong question)
- Option 1
Texas Instruments - Option 2
Fairchild Semiconductor - Option 3
Intel - Option 4
Western Digital
Fairchild Semiconductor
Intel
The project that produced the first microprocessor originated in 1969 and was conceptualized by the company
- Option 1
BUSICOM - Option 2
Intel - Option 3
Texas Instruments - Option 4
Garrett AiResearch
BUSICOM
Memory is sometimes accessed, I/O devices are used to display the result of the instruction execution.
- Option 1
Reset - Option 2
Fetch - Option 3
Decode - Option 4
Execute
Execute
Which is not a word-sized register?
- Option 1
ES - Option 2
FLAGS - Option 3
EIP - Option 4
R15W
EIP
“A doubleword number, 20471219H, is to be stored into memory using little endian format starting at memory location 00100H. What would be the content of memory location 00101H?”
- Option 1
12 - Option 2
20 - Option 3
47 - Option 4
19
12
What is the function of the program counter (PC) in the fetch stage?
1. Option 1
Store the current instruction being executed
2. Option 2
Decode the opcode of the instruction
3. Option 3
Increment to point to the next instruction
4. Option 4
Send signals to control units
Increment to point to the next instruction