"Assembly language program design" test questions
First, fill in the blanks: (15 points)
1. Computer language instructions include:,.
2, the data register group includes AX, BX, CX, DX, where AX said that BX is called, CX, DX said. Four segment registers are that the IP registers are stored.
4, the basic unit of data transmission is divided into three bytes, words, double words, one of the integer bytes of representations, and a integer word representation is
.
5, the stack is the storage structure, which is used as a stack of stacks.
6. The DEBUG includes several commands, where u commands are functional, and the functionality of the D command is that the command to view the contents of the register is.
Second, calculations: (25)
1. The following numbers are 8-bit binary numbers represented by 16 binders. Please indicate what the decimal and characters indicated when they are viewed as the number or character represented by the number or character represented by complement. ?
(1)
4f
(2) 2b
2, complete the calculation of the following binary number:
00010101 00001101 =
00111110 00101001 =
0001111-00000101 =
3, find the following binary number of complement:
-00010011 -00111111
4, seeking the following number
62A
0H and, and set the marker sf, zf, cf, but:
(1) 4321h (2) 9D60H
5, write the segment address, offset address, and physical address of the following storage unit addresses:
(1) 3549: 0075 (2) 1FE0: 00EA
Third, Just Answers: (20)
1. If a stack starts from the address 1250: 0000, its last word is from 0100h, the content of SP is 0052H:
Q: What is the top address of the stack?
(2) What is the address of the stack?
(3) What is the segment address in SS?
(4) Deposit data
83A
After 0h, how is the content of SP?
2, assuming (DS) = 2000H, (ES) = 2100H, (SS) = 1500h, (bx) = 0100h, (Si) =
00A
0H, (bp) = 0010h, the offset address of the data variable VAL is 0050h, indicating what addressing the source operation number of the following instructions? What is its physical address? (1) MOV AX, 0ABH
(2) MOV AX, BX
(3) MOV AX, [100H]
(4) MOV AX, VAL
(5) MOV AX, [BX]
(6) MOV AX, ES: [BX]
(7) MOV AX, [BP]
(8) MOV AX, [BX 10]
(9) MOV AX, [BX] [Si]
(10) MOV AX, [BX] [Si] 10
3, point out the error in the following instructions:
(1) MOV AH, BX
(2) MOV [BX], [Si]
(3) MOV AX, [Si] [DI]
(4) MOV MYDAT [BX] [Si], ES: AX
(5) MOV BYTE PTR [BX], 1000
(6) MOV BX, Offset MyDat [Si]
(7) MOV CS, AX
(8) MOV DS, BP
4, assuming (dx) = 10111001b, (CL) = 03, (CF) = 1, determine the value in DX after the following instructions are performed separately.
(1) SHR DX, 1
(2) SAR DX, CL
(3) SHL DL, 1
(4) ROR DL, CL
(5) RCR DL, 1
Fourth, read the following blocks, explain what work? (15)
1. The block segment is as follows:
MOV AX, 1234H
MOV CL, 4
ROL AX, CL
Dec AX
MOV CX, 4
MUL CX
INT 20H
Ask:
(1) What is the content of the AX register after each instruction is executed?
(2) What is the value of CF, ZF and SF after each instruction is executed?
(3) What is the content of the AX and DX at the end?
2, read the following programs, and point out the content displayed by the display:
A segment
Num db 00111001b
BUF DB 0AH, 0DH, '(NUM) ='
BUF1 DB 4 DUP (0) a ends
B Segment Stack
DB 200 DUP (0)
B ends
C segment
Assume DS: A, SS: Stack, CS: C
Begin: MOV AX, A
MOV DS, AX
Lea Di, BUF1
MOV Al, Num
MOV CL, 4
SHR Al, Cl
OR Al, 30H
MOV [DI], Al
INC DI
MOV Al, Num
And Al, 0FH
OR Al, 30H
MOV [DI], Al
INC DI
MOV BYTE PTR [DI], 'H'
INC DI
MOV BYTE PTR [DI], '$'
Lea DX, BUF
MOV AH, 9
Int 21h
MOV AH, 4CH
Int 21h
C ends
End Begin
V. Write procedures: (25 points)
1. Write a program to obtain the minimum odd number in the 10 word array of DATAs and store it in AX.
2. Write program calculation: S <- (A B) -2 * (a and b)
3, enter a series of characters from the keyboard, with '$' as the end, and then count the numeric characters, and display the results.