first commit

This commit is contained in:
2025-05-27 16:03:52 +08:00
commit 2d22d07f60
223 changed files with 5842 additions and 0 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,57 @@
# 1
1. 类型不匹配
2. 不能同时为内存单元
3. 寻址方式错误,\[变址][变址]是错误的,只能搭配\[基址][变址]
4. AX寄存器不能用于寄存器间接寻址
5. 不能使用MOV指令修改CSCS只能用JMP指令修改
# 2
1. 非法 OPR1不能是立即数
2. 合法
3. OPR1和OPR2不能同时为存储器
4. 合法
# 3
1. 非法 类型不匹配
2. 合法
3. 非法 DST和SRC不能同时为存储器寻址因为不能确定两者位宽是否匹配
4. 非法 DX寄存器不能用于寄存器间接寻址
5. 非法 DS无变址与其搭配
6. 合法
7. 合法
# 4
1. MOV AX, OFFSET LNAME
2. MOV SI, WORD PTR CODE_LIST
3. CODE_LENGHT EQU $-CODE_LIST
# 5
1. 不需要
2. 需要
3. 需要
4. 需要
5. 不需要
# 6
1. 1234H
2. 0032H
# 7
| Instruction | AX | CF | SF | ZF |
| ------------- | ----- | ---- | ---- | ---- |
| MOV AX, 1234H | 1234H | | | |
| MOV CL, 4 | 1234H | | | |
| ROL AX, CL | 2341H | 1 | | |
| DEC AX | 2340H | 1 | 0 | 0 |
| MOV CX, 4 | 2340H | | | |
| MUL CX | 8D00H | | | |
CX = 0004H

BIN
Assignment/答案/1.1.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 324 KiB

BIN
Assignment/答案/1.2.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 230 KiB

BIN
Assignment/答案/1.3.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 349 KiB

BIN
Assignment/答案/1.4.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 336 KiB

BIN
Assignment/答案/2.1.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 336 KiB

BIN
Assignment/答案/2.2.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 553 KiB

BIN
Assignment/答案/3.1.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 277 KiB

BIN
Assignment/答案/3.2.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 217 KiB

BIN
Assignment/答案/3.3.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 330 KiB

BIN
Assignment/答案/4.1.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 460 KiB

BIN
Assignment/答案/4.2.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 389 KiB

BIN
Assignment/答案/4.3.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 436 KiB

BIN
Assignment/答案/4.4.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 258 KiB

BIN
Assignment/答案/4.5.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 217 KiB

BIN
Assignment/答案/4.6.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 353 KiB

Binary file not shown.

Binary file not shown.