1
: 4
:
.
.
c)
.
:
a) .
b)
.
c) C
d) .
:
.
u nhiên.
.
?
a) 1
b) 2
c) 3
d) 4
Câu 5: T :
.
.
.
:
.
.
HT
.
:
.
.
d .
:
2
d) .
:
d)
:
b
Câu 11: :
a)
b)
c)
d) .
:
a) 0
b) 1
c) High Z
.
Câu 13:
a) 0
b) 1
c) High Z
d) u nhiên.
Câu 14: Bus :
d) .
.
0
1.
d) High Z
):
.
0
1.
d) High Z
1 byte)
a) 64200H
b) 00642H
c) A07FFH
d) A700FH
1MB
a) 100
b) 112
c) 128
d) 256
4 1MB
a) 256
b) 128
c) 64
d) 32
:
a) 7 bit
b) 8 bit
c) 9 bit
d) 10 bit
3
:
a) Bit MSB1
b) 1
c) 0
d) 0
:
0 lên 1.
b)
c)
d) .
:
a) 1111 1111 1111 1111B
b) 1000 0000 0000 0001B
c) 0000 0000 1000 0001B
d) 0000 0000 1111 1111B
?
a) 2
b) 3
c) 4
d) 5
theo H:
a) 2000H
b) 07FFH
c) 0800H
d) 2048H
:
.
.
.
.
Câu 27: 8:
a) 5 bit
b) 6 bit
c) 7 bit
d) 8 bit
phân?
a) 4 bit
b) 8 bit
c) 16 bit
.
:
a) 0
b) 1
c) High Z
:
a) 05H
b) 15H
c) 25H
d) 35H
Câu 31:
a) 13H
b) 23H
c) 1BH
d) 27H
4
8086/8
Câu 1: Trong CPU 8086 BIU :
a)
b)
c)
d) .
Câu 2: :
a) .
b) Logic
c)
d)
Câu 3: :
a)
b)
c)
d) .
Câu 4: ).
.
b) .
d)
.
Câu 5:
a) (Segment)
b) (offset)
c) .
d) Logic
Câu 6: 80
a) 4 bit
b) 8 bit
c) 16 bit
d) 32 bit
Câu 7: T
a)
b)
c)
d)
Câu 8: 80:
a) 3
b) 4
c) 5
d) 6
Câu 9:
a) C
b) .
c)
d)
Câu 10:
a)
b)
c)
d) .
Câu 11:
?
5
a) AX, BX, CX, DX
b) CS, DS, SS, ES
c) BX, BP, DI, SI
d) IP, SP, AH, AL
Câu 12: ?
a) AX
b) BX
c) CX
d) DX
Câu 13: 16 bit ?
a)
b)
c)
d)
Câu 14: 80 ?
a) CS
b) DS
c) ES
d) SS
Câu 15: Offset khi 80 ?
a)
b)
c)
d)
Câu 16: CPU 80 ?
a) 6
b) 7
c) 8
d) 9
(CF) 80 1 khi:
0
.
zero (ZF) 80 1 khi:
0
0.
0.
Câu 19: CPU 8086 .
a) 1
b) 2
c) 3
d) 4
.
,
.
Câu 21: Khi 8086 :
.
b) .
c)
.
d)
.
Câu 22: 8086
a) 00000H
b) FFFFFH
c) 00001H
d) FFFF0H
6
Câu 23: 8086
Câu 24 , CPU 8086 :
.
d)
.
8086
0
a) IP
b) SP
c) BP
d) DP
Câu 27:
Câu 28:
a)
a)
.
.
a) ALE
b) DT/R
c) DEN
d) DIR
Câu 32:
a)
7
a) 1234H:0005H
b) 1230H:0045H
c) 1200H:0345H
Câu 34: Khi nào thì giá tr
d)
Câu 1:
:
a)
b)
c)
d).
Câu 2: .
a) .Model, .Stack , .Data, .Code
b) equ, segment, public, extrn, include
c) db, dd, dw, dt
d)
.
Câu 3:
?
a) ANH
b) @49N:
c) 1NH:
d) N KH:
Câu 4: , kha:
a) Xon DB 1,2,3,fh
b) Yes DB 4,7,h,9
c) Rcl DB 19,7,6,10,3
d) Anh DB 9,3,8,7,0
Câu 5:
?
. Model Small
.Stack 100h
. Data
.Code
Start: MOV AX,@Data
MOV ES,AX
.
MOV AH,4CH
INT 21H
8
.
End Start
a) .exe
b) .com
c) .bat
d) .exe
Câu 6: :
a)
b)
c)
d)
Câu 7: :
a)
b) thanh ghi
d)
.
Câu 8:
a) .
b)
.
c) .
d)
.
Câu 9: :
a) ZF = 0
b) CF = 0
c) PF = 0
d) .
Câu 10: : MOV AH,05
MOV AL,03
XCHG AH,AL
a) AH=AL=03
b) AH=AL=05
c) AH=03; AL=05
d) AH=05; AL=03
Câu 11: :
ORG 1000H
LP DB 0,1,8,27,64,125,216
:
MOV AL,3
LEA BX,LP
XLAT
:
a) BX=1000H; AL= 1BH
b) BX=1000H, AL=27H
c) BX=0000H; AL=27
d) BX=0027H, AL= 0
Câu 12: :
PUSH AX
PUSH BX
PUSH CX
POP AX
POP BX
9
POP CX
:
a) AX=1000H; BX=2000H; CX=3000H
b) AX=2000H; BX=3000H; CX=1000H
c) AX=3000H; BX=1000H; CX=2000H
d) AX=3000H; BX=2000H; CX=1000H
Câu 13: ) v
:
a)
.
b)
.
c)
d)
.
Câu 14: =2; BX=3 sau lAX,BX :
a) AX=5; BX=3
b) AX=5; BX=0
c) 6; BX=0
d) c 6; BX=3
Câu 15: =9; AH=7; BL=4 sau :
ADD AL,BL
DAA
AND AL,0FH
OR AX,3030H
ADD AL,AH
MOV AH,0
AAA
ADD AX,3030H
a) 3130H
b) 3030H
c) 0100H
d) 3001H
Câu 16: :
a) CF=0; ZF=0
b) CF=0; ZF=1
c) CF=1; ZF=0
d) CF=1; ZF=1
Câu 17: :
a) AH=0
b) AH=06
c) AH=02
d) AH=03
Câu 18: :
a) AL .
b)
c) 0.
d) AL=0FH
Câu 19: :
a)
b)
c) 00H
d)
Câu 20:
:
a) AND
b) OR
c) XOR
d) NOT
Câu 21:
a) AL=5; CL=0
b) AL=3; CL=0
10
c) AL=5; CL=4
d) AL=3; CL=4
Câu 22: =00F0H; DX=0007H, sau
:
a) JB N
b) JE N
c) JL N
d) JG N
Câu 23:
a) PF = 0
b) PF = 1
c) ZF = 0
d) ZF = 1
Câu 24: .
a)
b)
c)
d)
.
a) AL=16H; CF=0
b) AL=16H; CF=1
c) AL=60H; CF=0
d) AL=60H; CF=1
Câu 26:
.
c)
d)
Câu 27: 32 bit AXDX=5000 BXCX=40003000H sau
:
SUB DX,CX
SBB AX,BX
a) AXDX=10001000H
b) AXDX=1000F000H
c) AXDX=0FFF1000H
d) AXDX=0FFFF000H
:
mov bx, 3235h
and bx, 0f0fh
mov dx, bx
shl bh, 4
or bl, bh
xor bh, bh
mov al, dh
mov cl, 10
mul cl
add al, dl
a) al=19h; bl=25h
b) al=25h; bl=25h
c) al=19h; bl=19h
d) al=0; bl=0
Câu 29: Sau khi au:
mov ax,VALUE
mov bx,ax
shl ax,2
add ax,bx
shl bx,3
sub ax,bx
11
a) AX=(-2)* VALUE
b) AX=(-3)* VALUE
c) AX=(-4)* VALUE
d) AX=(-5)* VALUE
Câu 30: =2 :
add si, si
add si, OFFSET TABLE
mov ax, cs:[si]
jmp ax
TABLE: DW ZERO
DW ONE
DW TWO
TWO: O
.
.
ONE:
.
.
ZERO: O
.
.
a)
.
b)
c)
d)
:
.
.
.
p.
:
MOV CX,99
MOV AX,0
MOV BX,1
TIEP: ADD AX,BX
INC BX
CMP AX,CX
JNA TIEP
a) BX=24
b) BX=25
c) BX=14
d) BX=15
:
MOV CX,99
MOV AX,0
MOV BX,1
TIEP: ADD AX,BX
ADD BX,2
LOOP TIEP
a) AX=9800
b) AX=9801H
12
c) AX=9800H
d) AX=9801
ADD AL,BL
ADD AH,BH
a) 10101H
b) 0101H.
c) 0001H
d) 10001H
a)
b) Thanh ghi BX
c) Thanh ghi AX
d) Thanh ghi AL.
Câu 37: Tr
a)
:
a)
b) 00H
c) 09H
Câu 41?
13
ELSE
Câu 42
XOR CX,CX
MOV AH,1
TIEP: INT 21H
CMP AL,27H
JE RA
INC CX
JMP TIEP
RA:
a) IF THEN
b) IF THEN ELSE
c) WHILE
d) FOR
Câu 1: :
a)
.
b)
.
c)
.
.
Câ
a)
b) .
c) .
d).
Câu 3:
?
a) ng
b) .
c)
.
d) .
:
14
EPROM2 (256KB)
EPROM1 (256KB)
SRAM2 (256KB)
SRAM1 (256KB)
Câu 5
:
a) 40000H 7FFFFH
b) 50000H - 8FFFFH
c) 80000H BFFFFH
d) D0000H FFFFFH
Câu 6:
:
a)
b) .
c) u
IO/M-
d) .
Câu 7: :
a) 6
b) 7
c) 8
d) 9
Câu 8: :
a) 00000H
b) FF800H
c) FF900H
d) FFFFFH
Câu 9:
?
a) 3
b) 4
15
c) 5
d) 6
Câu 10: )
?
a) 1
b) 2
c) 3
d) 4
Câu 11:
802861 4M
2M.
a)
b)
c)
d)
.
Câu 12: :
:
a) 0FBH
b) 0FBH
c) 03H
d) 03H
Câu 13: :
A22
A23
CS_SRAM1
CS_SRAM 2
NC
CS_EPROM
74LS139
2
3
1
4
5
6
7
A
B
G
Y0
Y1
Y2
Y3
A23
A22
CS_SRAM 2
CS_SRAM1
CS_EPROM
74LS139
2
3
1
4
5
6
7
A
B
G
Y0
Y1
Y2
Y3
U4A
74LS08
1
2
3
A22
A21
CS_SRAM 2
CS_SRAM1
CS_EPROM
74LS139
2
3
1
4
5
6
7
A
B
G
Y0
Y1
Y2
Y3
U4A
74LS08
1
2
3
A3 A7
A0
A1
A2
IORC
A
B
C
G2B
G2A
Y0
Y7
80286
system
A
22
A
0
:
D
7
D
6
A
23
D
5
D
4
D
3
D
2
D
1
D
0
74
LS
245
B
0
B
1
B
2
B
3
B
4
B
5
B
6
B
7
A
0
A
1
A
2
A
3
A
4
A
5
A
6
A
7
E
DIR
5
V
16
:
a) IN AL,0F000H
b) IN AL,01H
c) MOV DX,0F000H
IN AL,DX
d) MOV DX,0000H
IN AL,DX
Câu 14: ?
a)
b) THEN
c)
d) .
Câu 15:
:
a) 7FH
b) 7FH
c) 7FH
d) 0FFH.
Sai
A0
A1
IORC
A
B
C
G1
G2A
G2B
Y0
Y7
IOWC
A2 A6
IO/M
A7
17
:
00H
00H
7CH
7CH.
Câu 1: :
a) 3
b) 4
c) 5
d) 6
Câu 2: :
a)
b) Ra
c) .
d)
Câu 3: :
a) .
b) .
c) .
d) .
Câu 4: : CS=1; A1=0; A0=1; RD=0; WR=1:
a) 8255.
b) 8255.
c) 8255.
d) .
Câu 5: :
a)
b) Ra
c) .
d) .
Câu 6: 8255 tron
INTR.
a) RD
b) WR
c) ACK
d) IBF
Câu 7: .
a) RD
b) WR
c) ACK
d) INTR
A0
A1
IORC
A
B
C
G1
G2A
G2B
Y0
Y7
IOWC
A2 A6
IO/M
A7
18
Câu 8: :
a) .
b) .
c)
d) 8255.
Câu 9: 1 khi:
a) OBF=1; ACK=1; INTE=1
b) OBF=0; ACK=1; INTE=1
c) OBF=1; ACK=0; INTE=1
d) OBF=1; ACK=1; INTE=0
Câu 10: 8255:
a)
.
b)
.
c)
d)
Câu 11: --
:
a) 80H
b) 81H
c) 82H
d) 83H
Câu 12: :
a) C0H, C1H, C2H, C3H
b) C0H, C2H, C4H, C6H
c) C1H, C3H, C5H, C7H
d) C1H, C2H, C3H, C4H
Câu 13:
:
a) 00H, 02H, 04H, 06H
b) 01H, 03H, 05H, 07H
c) 70H, 72H, 74H, 76H
d) 03 câu.
19
Câu 14: :
a) 52H
b) 53H
c) 54H
d) 55H
:
a) IN AL,70H
b) IN 70H,AL
c) MOV DX,70H
IN DX,AL
d) .
Câu 16: :
a)
b) Song công
c)
d) .
Câu 17: :
a)
b)
c)
d) .
Câu 18: :
a) 1 bit
b) 1.5 bit
c) 2 bit
d) .
Câu 19:.
a) 1
b) 2
c) 3
d) 4
Câu 20: ?
a) .
b)
c)
d) .
Câu 21: :
a)
b) Ra
c)
d) .
:
TxD
Stop bit
Start bit
Making
20
a) 110 Baud
b) 220 Baud
c) 330 Baud
d) 440 Baud
Câu 23:
?
a) 03H
b) 07H
c) 0FH
d) F0H
Câu 24: :
a)
b)
c)
d) .
Câu 25: 8251 c c bit B2B1 :
a)
b) .
c)
d) Không .
Câu 26: :
a)
b)
c)
không
d) .
Câu 27: :
a)
b) 8251
c) 8251
d) .
Câu 28: :
a)
b) .
c)
d) .
.
.
8 BIT 8051.
Câu 1: :
a)
chip
b)
chip.
c)
chip
d)
riêng
Câu 2: :
RESET
CLK
A0
IORC
IOWC
A1
A3
A2
U1
8251
27
28
1
2
5
6
7
8
21
20
12
13
10
11
15
18
9
19
3
14
25
16
22
24
17
23
D0
D1
D2
D3
D4
D5
D6
D7
RESET
CLK
C/D
RD
WR
CS
TXRDY
TXE
TXC
TXD
RXD
RXRDY
RXC
SY/BR
DSR
DTR
CTS
RTS
U2A
74LS139
2
3
1
4
5
6
7
A
B
G
Y0
Y1
Y2
Y3
DATA BUS
21
a) 2
b) 3
c) 4
d) 5
Câu 3: EA 8051 :
a) 8051
b) 8051
c) 8051
d) 8051.
Câu 4: ng:
a) 00
b) 07
c) 0FH
d) FFH
Câu 5: :
a) 128 byte
b) 256 byte
c) 512 byte
d) 1024 byte
Câu 6: 088051:
a) Byte 081
b) Byte 08
c) Bit 0 1.
d) Bit 08 1.
Câu 7: :
a) 1
b) 2
c) 3
d) 4
Câu 8: , 8051 o?
a) 0
b) 0.
c)
d) 1.
Câu 9: 1 trong thanh ghi PSW 8051 :
a)
b)
c)
d)
.
Câu 10: 8051 :
a) p.
b)
c)
d) .
Câu 11: :
a)
b)
1.
c)
0.
d) 0 lên 1.
Câu 12: (timer) c
:
a) 8 bit
b) 13 bit
c) 16 bit
d) 24 bit.
Câu 13: :
22
a) .
b) .
c) 1
d) 1
Câu 14: :
a) .
b) .
c)
d) .
Câu 15: 08051 :
a)
b) .
c)
.
d)
.
Câu 16: :
a) 0.
b) .
c)
d)
10.
Câu 17: :
a)
.
b) .
c) .
d) .
Câu 18: 8051 :
a) .
b)
c)
.
d) C.
Câu 19: :
a) 2
b) 3
c) 4
d) 5
Câu 20: Bit TR trong thanh ghi TCON a 8051 :
a)
b) .
c)
d) .
Câu 21:
?
a) 00H
b) FFH
c) 11H
d) .
Câu 22:
:
a) 8051.
b) 8051
c)
d) .
Câu 23: timer 18051
:
a) 0001 0000B
b) 0101 0000B
c) 1001 0000B
d) 0000 0001B
Câu 24: ?
23
a) 2
b) 3
c) 4
d) 5
Câu 25:
trong:
a) Thanh ghi SBUF
b) Thanh ghi SCON
c) Trong thanh ghi B
d) Trong thanh ghi A
Câu 26: 8051 .
a)
b)
.
c)
.
d) .
Câu 27: 8051
?
a) 0
b)
c) T.
d)
.
Câu 28:
u:
a) Song công
n song công
c)
d) .
Câu 29
a) @R1
b) @R2
c) @R3
d) @R4
Câu 30,70H 8051 :
.
.
.
.
07
07
07
.
Câu 32: :
a)
.
b)
.
c)
.
d)
.
Câu 33: 8051
:
ORG 0
MOV DPTR, #TAB1
24
MOV A,#0FFH
MOV P1,A
L01:
MOV A,P1
MOVC A,@A+DPTR
MOV P2,A
SJMP L01
;
ORG 300H
TAB1: DB 0,1,4,9,16,25,36,49,64,81
END
a) 300H
b) 0H
c) 0149H
d) 0149
Câu 34: :
a)
b) 1
c)
d) 2
Câu 35: DJNZ R2,AGAIN :
a)
AGAIN.
b)
c)
0.
d)
AGAIN khi R2 0.
Câu 36CJNE8051 :
a) 1
b) 2
c) 3
d) 4
:
a) 64KB
b) 4KB
c) 2KB
d) 256B
:
MOV A, #0
MOV R2, #0
AGAIN: ADD A, #03
DJNZ R2, AGAIN
MOV R5, A
?
a) 255
b) 256
c) 257
d) 258
:
DELAY: MOV R3, #200 ; 1 MC
HERE : DJNZ R3, HERE ; 2 MC
RET ; 1 MC
25
?
a) 436.16 µs
b) 436.17 µs
c) 436.18 µs
d) 436.19 µs
:
MOV A, #55H
BACK: MOV P0, A
ACALL DELAY
CPL A
SJMP BACK
1 liên t
1
0
0 lên 1.
:
ORG 0000H
MOV DPTR, #200H
CLR A
MOVC A, @A + DPTR
MOV R0, A
INC DPTR
CLR A
MOVC A, @A + DPTR
MOV R1, A
INC DPTR
CLR A
MOVC A, @A + DPTR
MOV R2, A
HERE: SJMP HERE
ORG 200H
MYDATA:
END
b) R0
nhiêu?
ORG 000
MOV DPTR, #300 H
MOV A, #0FFH
MOV P1, A
BACK: MOV A, P1
MOVC A, @A + DPTR
MOV P2, A
SJMP BACK
ORG 300H
XSQR - TABLE: