微机原理与接口技术实验报告汇编部分大学实验报告免费下载.docx
《微机原理与接口技术实验报告汇编部分大学实验报告免费下载.docx》由会员分享,可在线阅读,更多相关《微机原理与接口技术实验报告汇编部分大学实验报告免费下载.docx(53页珍藏版)》请在冰豆网上搜索。
![微机原理与接口技术实验报告汇编部分大学实验报告免费下载.docx](https://file1.bdocx.com/fileroot1/2022-11/18/a244adf4-d8d3-4346-9f1a-560b4093d81b/a244adf4-d8d3-4346-9f1a-560b4093d81b1.gif)
微机原理与接口技术实验报告汇编部分大学实验报告免费下载
注:
粗体部分为实验原始数据或结果
汇编实验一
1-1.从3500H内存单元开始建立0~15共16个数据(建立的数据为00H,01H~09H.0AH~0FH)。
并运行之,检查记录结果。
DATASSEGMENT
ORG3500H
MEM1DB16DUP(?
);此处输入数据段代码
DATASENDS
STACKSSEGMENT
;此处输入堆栈段代码
STACKSENDS
CODESSEGMENT
ASSUMECS:
CODES,DS:
DATAS,SS:
STACKS
START:
MOVAX,DATAS
MOVDS,AX
MOVDI,3500H
MOVCX,0010H
MOVAH,00H
SAHF
MOVAL,00H
A1:
MOV[DI],AL
INCDI
INCAL
LOOPA1;此处输入代码段代码
MOVAH,4CH
INT21H
CODESENDS
ENDSTART
-U
1732:
0000B8E113MOVAX,13E1
1732:
00038ED8MOVDS,AX
1732:
0005BF0035MOVDI,3500
1732:
0008B91000MOVCX,0010
1732:
000BB400MOVAH,00
1732:
000D9ESAHF
1732:
000EB000MOVAL,00
1732:
00108805MOV[DI],AL
1732:
001247INCDI
1732:
0013FEC0INCAL
1732:
0015E2F9LOOP0010
1732:
0017B44CMOVAH,4C
1732:
0019CD21INT21
-G=00000017
AX=0010BX=0000CX=0000DX=0000SP=0000BP=0000SI=0000DI=3510
DS=131ES=13D1SS=13E1CS=1732IP=0017NVUPEIPLNZACPONC
1732:
0017B44CMOVAH,4C
-D13E1:
3500
13E1:
35000001020304050607-08090A0B0C0D0E0F................
13E1:
3510B8E1138ED8BF0035-B91000B4009EB000.......5........
13E1:
3520880547FEC0E2F9B4-4CCD210000000000..G.....L.!
.....
13E1:
35300000000000000000-0000000000000000................
13E1:
35400000000000000000-0000000000000000................
1-2.如果建立的数据为BCD码表示的十进制数据(建立的数据应为00H,01H~09H,10H~15H),应如何修改上述程序.并运行之,检查记录结果。
DATASSEGMENT
ORG3500H
MEM1DB16DUP(?
);此处输入数据段代码
DATASENDS
STACKSSEGMENT
;此处输入堆栈段代码
STACKSENDS
CODESSEGMENT
ASSUMECS:
CODES,DS:
DATAS,SS:
STACKS
START:
MOVAX,DATAS
MOVDS,AX
MOVDI,3500H
MOVCX,0010H
MOVAH,00H
SAHF
MOVAL,00H
A1:
ADDAL,00H
DAA
MOV[DI],AL
INCDI
INCAL
LOOPA1;此处输入代码段代码
MOVAH,4CH
INT21H
CODESENDS
ENDSTART
-U
1732:
0000B8E113MOVAX,13E1
1732:
00038ED8MOVDS,AX
1732:
0005BF0035MOVDI,3500
1732:
0008B91000MOVCX,0010
1732:
000BB400MOVAH,00
1732:
000D9ESAHF
1732:
000EB000MOVAL,00
1732:
00108805MOV[DI],AL
1732:
001247INCDI
1732:
0013FEC0INCAL
1732:
0015E2F9LOOP0010
1732:
0017B44CMOVAH,4C
1732:
0019CD21INT21
-G=00000017
AX=0010BX=0000CX=0000DX=0000SP=0000BP=0000SI=0000DI=3510
DS=13E1ES=13D1SS=13E1CS=1732IP=0017NVUPEIPLNZACPONC
1732:
0017B44CMOVAH,4C
-D13E1:
3500
13E1:
35000001020304050607-0809101112131415................
13E1:
3510B8E1138ED8BF0035-B91000B4009EB000.......5........
13E1:
3520040027880547FEC0-E2F6B44CCD210000..'..G.....L.!
..
13E1:
35300000000000000000-0000000000000000................
13E1:
35400000000000000000-0000000000000000................
1-3.编程完成1+2+3+4+5+6+7+8+9运算。
DATASSEGMENT
ORG3500H
MEM1DB9DUP(?
)
DATASENDS
STACKSSEGMENT
;此处输入堆栈段代码
STACKSENDS
CODESSEGMENT
ASSUMECS:
CODES,DS:
DATAS,SS:
STACKS
START:
MOVAX,DATAS
MOVDS,AX
MOVMEM1,01H
MOVBL,MEM1
MOVAL,00H
MOVCX,9
MOVAH,0
A1:
ADDAL,BL
ADCAH,0
INCBL
LOOPA1
;此处输入代码段代码
MOVAH,4CH
INT21H
CODESENDS
ENDSTART
-U
1732:
0000B8E113MOVAX,13E1
1732:
00038ED8MOVDS,AX
1732:
0005C606003501MOVBYTEPTR[3500],01
1732:
000A8A1E0035MOVBL,[3500]
1732:
000EB000MOVAL,00
1732:
0010B90900MOVCX,0009
1732:
0013B400MOVAH,00
1732:
001502C3ADDAL,BL
1732:
001780D400ADCAH,00
1732:
001AFEC3INCBL
1732:
001CE2F7LOOP0015
1732:
001EB44CMOVAH,4C
-G=0000001E
AX=002DBX=000ACX=0000DX=0000SP=0000BP=0000SI=0000DI=0000
DS=13E1ES=13D1SS=13E1CS=1732IP=001ENVUPEIPLNZNAPENC
1732:
001EB44CMOVAH,4C
1-4.编程完成1+2+3+4+5+6+7+8+~+100运算。
DATASSEGMENT
SUMDW?
DATASENDS
STACKSSEGMENT
STACKSENDS
CODESSEGMENT
ASSUMECS:
CODES,DS:
DATAS,SS:
STACKS
START:
MOVAX,DATAS
MOVDS,AX
MOVAX,0
MOVBX,1
MOVCX,100
A1:
ADDAX,BX
INCBX
DECCX
JNZA1
MOVSUM,AX
MOVAH,4CH
INT21H
CODESENDS
ENDSTART
实验结果:
-U
172A:
0000B8D913MOVAX,13D9
172A:
00038ED8MOVDS,AX
172A:
0005C606003501MOVBYTEPTR[3500],01
172A:
000A8A1E0035MOVBL,[3500]
172A:
000EB000MOVAL,00
172A:
0010B96400MOVCX,0064
172A:
0013B400MOVAH,00
172A:
001502C3ADDAL,BL
172A:
001780D400ADCAH,00
172A:
001AFEC3INCBL
172A:
001CE2F7LOOP0015
172A:
001EA30135MOV[3501],AX
-U
172A:
0021B44CMOVAH,4C
172A:
0023CD21INT21
-G=00000021
AX=13BABX=0065CX=0000DX=0000SP=0000BP=0000SI=0000DI=0000
DS=13D9ES=13C9SS=13D9CS=172AIP=0021NVUPEIPLNZNAPENC
172A:
0021B44CMOVAH,4C
-DDS:
3500
13D9:
350001BA130000000000-0000000000000000................
13D9:
3510B8D9138ED8C60600-35018A1E0035B000........5....5..
13D9:
3520B96400B40002C380-D400FEC3E2F7A301.d..............
13D9:
353035B44CCD21000000-00000000000000005.L.!
...........
1-5.将内存3500H单元开始存放的0~9共10个字节数传递到3600H单元开始的数据区中(同一段内传送)。
DATASSEGMENT
ORG3500H
MEM1DB0,1,2,3,4,5,6,7