版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領
文檔簡介
1、精選優(yōu)質文檔-傾情為你奉上精選優(yōu)質文檔-傾情為你奉上專心-專注-專業(yè)專心-專注-專業(yè)精選優(yōu)質文檔-傾情為你奉上專心-專注-專業(yè)(大神出品,不保證沒錯誤)實驗一:1.1:STACK SEGMENT STACKDW 64 DUP(?)STACK ENDSDATA SEGMENTORG 0500HDATA1 DB 5 DUP(?)ORG 050AHDATA2 DB 5 DUP(?)DATA ENDSCODE SEGMENTASSUME CS:CODE,DS:DATA,SS:STACKSTART: MOV AX,DATAMOV DS,AXMOV CX,5MOV DI,OFFSET DATA1MOV S
2、I,OFFSET DATA2LAB1: MOV BL,0FFHMOV AL,DICMP AL,3AHJNB OKSUBAL,30HJC OKMOV BL,ALOK: MOV AL,BLMOV SI,ALINC DIINC SILOOP LAB1MOV AH,4CHINT 21HCODE ENDSEND START1.2:STACK SEGMENT STACKDW 64 DUP(?)STACK ENDSDATA SEGMENTORG 0500HDATA1 DW 78EDHORG 0510HDATA2 DB 5 DUP(?)DATA ENDSCODE SEGMENTASSUME CS:CODE,D
3、S:DATA,SS:STACKSTART: MOV AX,DATAMOV DS,AXLEA SI,DATA1LEA DI,DATA2+4MOV BX,000AHMOV CX,0005HMOV AX,SIAA0: MOV DX,0000HDIV BXMOV DI,DLDEC DILOOP AA0MOV AH,4CHINT 21HCODE ENDSEND START1.3:STACK SEGMENT STACK DW 64 DUP(?)STACK ENDSDATA SEGMENT ORG 0500HDATA1 DB 2 DUP(?) ORG 050AHDATA2 DB 4 DUP(?)DATA E
4、NDSCODE SEGMENT ASSUME CS:CODE,DS:DATASTART: MOV AX,DATA MOV DS,AX MOV DI,OFFSET DATA1 MOV SI,OFFSET DATA2 MOV AX,DI MOV CX,0004H MOV BX,1000HA1: MOV DX,0000H DIV BX CMP AL,0AH JAE A3 ADD AL,30HA2: MOV SI,AL INC SI PUSH DX MOV AX,BX MOV BX,0010H MOV DX,0000H DIV BX MOV BX,AX POP DX MOV AX,DX LOOP A1
5、 INT 03H A3: SUB AL,0AH ADD AL,41H JMP A2CODE ENDS END START1.4STACK SEGMENT STACK DW 64 DUP(?)STACK ENDSDATA SEGMENT ORG 0500HDATA1 DB 8 DUP(?) ORG 0510HDATA2 DB 8 DUP(?)DATA ENDSCODE SEGMENT ASSUME CS:CODE,DS:DATASTART: MOV AX,DATA MOV DS,AX MOV DI,OFFSET DATA1 MOV SI,OFFSET DATA2 MOV CX,0004H MOV
6、 BL,0AH MOV AH,00HA1: MOV AL,DI MUL BL INC DI MOV DL,DI ADD AL,DL MOV SI,AL INC DI INC SI LOOP A1 INT 03HCODE ENDS END START 1.5STACK SEGMENT STACK DW 64 DUP(?)STACK ENDSDATA SEGMENT ORG 0600HDATA1 DB ? ORG 0610HJIEGUO DB ?DATA ENDSCODE SEGMENT ASSUME CS:CODE,DS:DATASTART:MOV AX,DATA MOV DS,AX LEA S
7、I,DATA1 LEA DI,JIEGUO XOR CH,CH MOV CL,04H MOV DL,0AH MOV DH,04H A1:MOV AL,SI AND AL,0FH MOV BL,AL MOV AL,SI SHR AL,CL MUL DL ADD AL,BL MOV DI,AL INC SI INC DI DEC DH JNZ A2 JMP A3 A2:JMP A1 A3:INT 03HCODE ENDS END START1.6STACK SEGMENT STACK DW 64 DUP(?)STACK ENDSDATA SEGMENT ORG 0300HDATA1 DB 2 DU
8、P(?) ORG 0308HDATA2 DB 5 DUP(?)DATA ENDSCODE SEGMENT ASSUME CS:CODE,DS:DATASTART: MOV AX,DATA MOV DS,AX MOV DI,OFFSET DATA1 MOV SI,OFFSET DATA2 MOV AX,DI MOV BX,2710H ;十進制數(shù)的10000 MOV CX,0005HA1: MOV DX,0000H DIV BX MOV SI,AL INC SI PUSH DX MOV AX,BX MOV BX,0AH MOV DX,0000H DIV BX MOV BX,AX POP DX MO
9、V AX,DX LOOP A1 INT 03HCODE ENDS END START實驗二:2.1STACKS SEGMENTDW 64 (?)STACKS ENDSDATAS SEGMENTORG 0700HX DW 0208HY DW 0509HZ DW 0304HORG 0710H Q DW ? DATAS ENDSCODES SEGMENT ASSUME CS:CODES,DS:DATAS,SS:STACKSSTART: MOV AX,DATAS MOV DS,AX MOV AX,X ADD AX,Y ;X+Y結果存入AX中 AAA ;BCD碼調整 SUB AX,Z ;X+Y-Z結果存
10、入AX AAS ;BCD碼調整 MOV Q,AX ;Q存入3710單元 MOV AH,4CH INT 21H CODES ENDS END START2.2STACKS SEGMENTDW 64 DUP(?)STACKS ENDSDATAS SEGMENT ORG 0500HTAB DW 0010H,0020H,0030H,0040H,0050H,0060HORG 0510HJIEGUO DB 2 DUP(?)DATAS ENDSCODES SEGMENT ASSUME CS:CODES,DS:DATAS,SS:STACKSSTART: MOV AX,DATAS MOV DS,AX SUB A
11、X,AX MOV CX,06H LEA DI,TABBBB: ADD AX,DI INC DI INC DI DEC CX JNZ BBB MOV BX,06H CWD DIV BX MOV BX,0AH CWD DIV BX LEA SI,JIEGUO MOVSI,AL INC SI MOVSI,DL ;INT 03H MOV AH,4CH INT 21HCODES ENDSEND START2.3STACK SEGMENT STACKDW 64 DUP(?)STACK ENDSDATA SEGMENT ORG 0500HDATA1 DB 10H,15H,0FH ORG 0510HJIEGU
12、O DB ?DATA ENDSCODE SEGMENT ASSUME CS:CODE,DS:DATASTART:MOV AX,DATA MOV DS,AX LEA SI,DATA1 LEA DI,JIEGUO MOV CX,0002H MOV AL,SI A1:INC SI ADD AL,SI LOOP A1 MOV BL,04H MUL BL MOV DL,64H MOV AH,00H DIV DL MOV DI,AL INC DI MOV AL,AH MOV AH,00H MOV DL,0AH DIV DL MOV DI,AL INC DI MOV DI,AH INT 03HCODE EN
13、DS END START2.4DATAS SEGMENT ORG 0550H X DB 65H,67H,87H,19H,32H,54H,76H,98H ;低位在低地址,高位在高地址 Y DB 65H,67H,87H,19H,32H,54H,76H,98H DATAS ENDSSTACKS SEGMENTSTACKS ENDSCODES SEGMENT ASSUME CS:CODES,DS:DATAS,SS:STACKSSTART: MOV AX,DATAS MOV DS,AX MOV SI,00H ;變址存于SI MOV CX,04H ;循環(huán)次數(shù)為4 CLC ;CF位清零BBB:MOV AX,
14、0550HSI ;取被加數(shù)4位存于AX中 ADC AX,0558HSI ;被加數(shù)4位減去減數(shù)4位 MOV 0560HSI,AX ;結果存入3060H開始的單元 ADD SI,02H ;變址加2 DEC CXJNZ BBB ;DI不為零時繼續(xù)循環(huán) MOV AH,4CH INT 21HCODES ENDS END START2.5STACKS SEGMENTDW 64 (?)STACKS ENDSDATAS SEGMENTORG 0300HX DW 0608HY DW 0509HZ DW 0306HORG 0310H Q DW ? DATAS ENDSCODES SEGMENT ASSUME CS
15、:CODES,DS:DATAS,SS:STACKSSTART: MOV AX,DATAS MOV DS,AX MOV AX,X SUB AX,Y ;X-Y結果存入AX中 ;AAS ;BCD碼調整 ADD AX,Z ;X-Y+Z結果存入AX ;AAA ;BCD碼調整 MOV Q,AX ;Q存入3710單元 MOV AH,4CH INT 21H CODES ENDS END START2.6DATAS SEGMENT ORG 0550H X DB 65H,67H,87H,19H,32H,54H,76H,98H ;低位在低地址,高位在高地址 Y DB 77H,39H,32H,48H,95H,28H,
16、43H,56H DATAS ENDSSTACKS SEGMENTSTACKS ENDSCODES SEGMENT ASSUME CS:CODES,DS:DATAS,SS:STACKSSTART: MOV AX,DATAS MOV DS,AX MOV SI,00H ;變址存于SI MOV CX,04H ;循環(huán)次數(shù)為4 CLC ;CF位清零BBB:MOV AX,0550HSI ;取被加數(shù)4位存于AX中 SBB AX,0558HSI ;被加數(shù)4位減去減數(shù)4位 MOV 0560HSI,AX ;結果存入0506H開始的單元 ADD SI,02H ;變址加2 DEC CXJNZ BBB ;DI不為零時繼續(xù)
17、循環(huán) MOV AH,4CH INT 21HCODES ENDS END START實驗三:3.1DATAS SEGMENTORG 0500H ;BUFSIZE DB 9 ;單元數(shù)據(jù)個數(shù) NUM DB 09h,12H,80H,78H,0C8H,00H,00H,0FEH,99H,34H ORG 0510H RESULT DB 3 DUP(0,0,0)DATAS ENDSCODES SEGMENT ASSUME CS:CODES,DS:DATASSTART: MOV AX,DATAS MOV DS,AX MOV DI,OFFSET NUM ;送數(shù)據(jù)地址到DI LEA BP,RESULT MOV SI
18、,00H MOV CX,di ;循環(huán)次數(shù)mov ch,00hinc diAGAIN:TEST BYTE PTRDI,80H JZ COUNT ;ZF=1,此數(shù)據(jù)為非負數(shù),轉移 INC BYTE PTRBP+1 ;ZF=0,此數(shù)據(jù)為負數(shù) JMP DONECOUNT:CMP BYTE PTRDI,01H JNC NEXT INC BYTE PTRBP+2 ;CF=1,此數(shù)據(jù)為0 JMP DONENEXT: INC BYTE PTRBP ;CF=0,此數(shù)據(jù)為正數(shù)DONE: INC DI LOOP AGAIN MOV AH,4CH INT 21HCODES ENDSEND START3.2STACK
19、SEGMENT STACK DW 64 DUP(?)STACK ENDSDATA SEGMENT ORG 0200HDAT0 DB 3 DUP(?) ORG 0204HDATE0 DW ?DATA ENDSCODE SEGMENT ASSUME CS:CODE,DS:DATASTART: MOV AX,DATA MOV DS,AX LEA SI,DAT0 LEA DI,DATE0 MOV AL,SI MOV AH,SI+1 MOV BL,SI+2 CMP AL,AH JZ A1 CMP AL,BL JZ A2 MOV DI,SI JMP A4A2:ADD SI,1 MOV DI,SI JMP
20、A4A1:CMP AL,BL JZ A3 ADD SI,2 MOV DI,SI JMP A4A3:MOV DI,0FFFFHA4:MOV AH,4CH INT 21HCODE ENDS END START 3.3DATAS SEGMENT ORG 3700H SCORE DB 64H,61H,5DH,55H,52H,51H,44H,45H,47H,48H,4DH,4FH,3CH,3FH,40H,41H,33H,56H,59H,30H ORG 3720H TOT DB 5 DUP(0,0,0,0,0) DATAS ENDSCODES SEGMENT ASSUME CS:CODES,DS:DATA
21、SSTART: MOV AX,DATAS MOV DS,AX MOV CX,20 ;循環(huán)次數(shù) MOV SI,OFFSET SCORE ;分數(shù)首地址送SIBBB:MOV BP,OFFSET TOT MOV AL,BYTE PTRSI CLC CMP AL,60 JNB S70 ;CF=0,大于60跳轉 JMP DONES70: INC BP CMP AL,70 JNB S80 ;CF=0,大于70跳轉 JMP DONES80: INC BP CMP AL,80 JNB S90 ;CF=0,大于80跳轉 JMP DONES90: INC BP CMP AL,90 JNB S100 ;CF=0,大于
22、90跳轉 JMP DONES100: INC BPDONE:INC BYTE PTRBP ;對應分數(shù)段人數(shù)加1 INC SI LOOP BBB MOV AH,4CH INT 21HCODES ENDSEND START3.4DATAS SEGMENT ORG 0300H LEN DW 0020HNUM (定義20個數(shù),由于太長,Worl里面顯示成了幾行,換行要在行首加DB)DB 12H,34H,34H,54H,65H,65H,53H,55H,09H,69H,0FCH,65H,0AAH,0FBH,98H,88H, 0C3H,44H,12H,12H,45H,45H,76H,76H,32H,32H,
23、76H,76H,0B7H,86H,21H,09H ORG 0400H MAX DB ? ADDRESS DW ?DATAS ENDSCODES SEGMENT ASSUME CS:CODES,DS:DATASSTART: MOV AX,DATAS MOV DS,AX LEA SI,NUM MOV AL,00H MOV CX,LEN ;循環(huán)次數(shù) MOV ADDRESS,0302H CLC BBB: CMP AL,BYTE PTRSI ;講AL中數(shù)據(jù)與(SI)中數(shù)據(jù)比較 JNB NEXT CLC ;CF=1,CF清零,記錄數(shù)據(jù)地址 MOV AL,BYTE PTRSI MOV ADDRESS,SIN
24、EXT:INC SI LOOP BBB MOV MAX,AL ;將AL中最大數(shù)存入指定地址 MOV AH,4CH INT 21HCODES ENDSEND START3.5STACK SEGMENT STACK DW 64 DUP(?)STACK ENDSDATA SEGMENT ORG 0300HX DB ? ORG 0305HY DB ?DATA ENDSCODE SEGMENT ASSUME CS:CODE,DS:DATASTART:MOV AX,DATA MOV DS,AX LEA SI,X LEA DI,Y MOV CX,0003H A1:MOV AL,SI INC SI AND A
25、L,AL JNS A2 MOV BYTE PTRDI,0BH INC DI LOOP A1 JMP EXIT A2:JZ A3 MOV BYTE PTRDI,0AH INC DI LOOP A1 JMP EXIT A3:MOV BYTE PTRDI,00H INC DI LOOP A1 EXIT:INT 03HCODE ENDS END START3.6STACK SEGMENT STACK DW 64 DUP(?)STACK ENDSDATA SEGMENT ORG 0200HX DB ? ORG 0105HY DB ?DATA ENDSCODE SEGMENT ASSUME CS:CODE
26、,DS:DATASTART:MOV AX,DATA MOV DS,AX LEA SI,X LEA DI,Y MOV CX,0003H A1:MOV AL,SI INC SI CMP AL,0C8H JBE A2 MOV BYTE PTRDI,90H INC DI LOOP A1 JMP EXIT A2:CMP AL,64H JNZ A3 MOV BYTE PTRDI,50H INC DI LOOP A1 JMP EXIT A3:CMP AL,32H JAE A4 MOV BYTE PTRDI,00H INC DI A4:LOOP A1 EXIT:INT 03HCODE ENDS END STA
27、RT實驗四:修改實驗程序:(1)STACK SEGMENT STACKDW 64 DUP(?)STACK ENDSCODE SEGMENTASSUME CS:CODE,SS:STACKSTART: MOV BX,03HA0:CMP BX,00HJZ A3PUSH BX ;現(xiàn)場保護MOV CX,09H ;9個字符MOV BL,31HMOV AH,02HA1:MOV DL,BLINT 21HINC BLPUSH CXMOV CX,0FFFFHA2:LOOP A2POP CXDEC CXJNZ A1MOV DL,0DHMOV AH,02HINT 21HMOV DL,0AHMOV AH,02HINT
28、21HPOP BXDEC BXJMP A0A3:MOV AH,4CHINT 21HCODE ENDS END START(2)STACK SEGMENT STACKDW 64 DUP(?)STACK ENDSCODE SEGMENTASSUME CS:CODE,SS:STACKSTART: MOV BX,04HA0:CMP BX,00HJZ A3PUSH BX ;現(xiàn)場保護MOV CX,001AH ;26個字母MOV BL,41HMOV AH,01HA1:MOV AL,BLINT 10HINC BLDEC CXJNZ A1MOV CX,09H ;9個字符MOV BL,31HMOV AH,01HA
29、2:MOV AL,BLINT 10HINC BLDEC CXJNZ A2MOV DL,0DH ;回車換行MOV AH,02HINT 21HMOV DL,0AHMOV AH,02HINT 21HPOP BXDEC BXJMP A0A3:INT 03HCODE ENDS END START(3)STACK SEGMENT STACK DW 64 DUP(?)STACK ENDSDATA SEGMENTDATE1 DB HOW ARE YOU TODAY?DATA ENDSCODE SEGMENT ASSUME CS:CODE,SS:STACKSTART:MOV AX,DATA MOV DS,AXA
30、1: MOV AH,06H LEA BX,DATE1 INT 10H INT 03H CODE ENDS END START(4)STACK SEGMENT STACK DW 64 DUP(?)STACK ENDSDATA SEGMENTDATE1 DB GOOD AFTERNOONDATA ENDSCODE SEGMENT ASSUME CS:CODE,SS:STACKSTART:MOV AX,DATA MOV DS,AX MOV CX,000EH LEA SI,DATE1A1: MOV DL,SI MOV AH,02H INT 21H CALL DELAY INC SI LOOP A1 M
31、OV AH,4CH INT 21HDELAY:PUSH CX PUSH AX MOV CX,2000HA2:MOV AX,0FFFFHA3:DEC AX JNE A3 LOOP A2 POP AX POP CX RET CODE ENDS END START編程練習4.1STACK SEGMENT STACK DW 64 DUP(?)STACK ENDSCODE SEGMENT ASSUME CS:CODE,SS:STACKSTART:MOV AX,5678H+6666H-1234H (注:其余5題把該算式改為相應的即可) MOV BX,AX MOV CL,4H MOV SI,0004HA0:
32、 ROL BX,CLMOV AX,BXAND AX,000FHCMP AL,0AHJGE A2ADD AL,30HJMP A3A2:ADD AL,37HA3:MOV AH,02HMOV DL,ALINT 21HDEC SIJNZ A0MOV AH,4CHINT 21H CODE ENDS END START實驗五:5.1STACK SEGMENT STACKDW 64 DUP(?)STACK ENDSCODE SEGMENTASSUME CS:CODESTART:MOV AX,0000HMOV DS,AXMOV AX,OFFSET IRQ6MOV SI,0038HMOV SI,AXMOV AX
33、,CSMOV SI,003AHMOV SI,AXMOV AL,11HOUT 20H,ALMOV AL,08HOUT 21H,ALMOV AL,04HOUT 21H,ALMOV AL,01HOUT 21H,ALMOV AL,0BFHOUT 21H,ALMOV CX,000FHA1: CMP CX,0000HJNZ A2MOV AL,80HOUT 21H,ALA2:STIJMP A1IRQ6:MOV AX,0136HINT 10HMOV AX,0120HINT 10HDEC CXMOV AL,20HOUT 20H,ALIRETCODE ENDSEND START5.2STACK SEGMENT S
34、TACK DW 64 DUP (?)STACK ENDSDATA SEGMENTTABLE DB 39H,41H,38H,42H,37H,43H DATA ENDSCODE SEGMENT ASSUME CS:CODE,DS:DATASTART:MOV AX,DATA MOV DS,AX PUSH DS MOV AX,0000H MOV DS,AX MOV AX,OFFSET IRQ6 MOV SI,0038H MOV SI,AX MOV AX,CS MOV SI,003AH MOV SI,AX POP DS MOV AL,11H OUT 20H,AL MOV AL,08H OUT 21H,A
35、L MOV AL,04H OUT 21H,AL MOV AL,01H OUT 21H,AL MOV AL,0BFH OUT 21H,AL MOV CX,000CH A1:CMP CX,0000H JNZ A2 MOV AL,40H OUT 21H,ALA2:STI JMP A1IRQ6:MOV AH,06H MOV BX ,OFFSET TABLE INT 10H MOV AX,0120H INT 10H DEC CX MOV AL,20H OUT 20H,AL IRETCODE ENDS END START5,3STACK SEGMENT STACK DW 64 DUP (?)STACK E
36、NDSDATA SEGMENTTABLE DB 7ABCDEFGHIJKLMNOPQRSTUVWXYZ $ DATA ENDSCODE SEGMENT ASSUME CS:CODE,DS:DATASTART:MOV AX,DATA MOV DS,AX PUSH DS MOV AX,0000H MOV DS,AX MOV AX,OFFSET IRQ7 MOV SI,003CH MOV SI,AX MOV AX,CS MOV SI,003EH MOV SI,AX POP DS MOV AL,11H OUT 20H,AL MOV AL,08H OUT 21H,AL MOV AL,04H OUT 21
37、H,AL MOV AL,01H OUT 21H,AL MOV AL,7FH OUT 21H,AL MOV CX,0002H A1: CMP CX,0000H JNZ A2 MOV AL,40H OUT 21H,ALA2:STI JMP A1IRQ7:MOV AH,09H MOV DX ,OFFSET TABLE INT 21H MOV AX,0120H INT 10H DEC CX MOV AL,20H OUT 20H,AL IRETCODE ENDSEND START5.4STACK SEGMENT STACK DW 64 DUP (?)STACK ENDSDATA SEGMENTTABLE
38、 DB 20XXNKL $ DATA ENDSCODE SEGMENT ASSUME CS:CODE,DS:DATASTART:MOV AX,DATA MOV DS,AX PUSH DS MOV AX,0000H MOV DS,AX MOV AX,OFFSET IRQ6 MOV SI,0038H MOV SI,AX MOV AX,CS MOV SI,003AH MOV SI,AX POP DS MOV AL,11H OUT 20H,AL MOV AL,08H OUT 21H,AL MOV AL,04H OUT 21H,AL MOV AL,01H OUT 21H,AL MOV AL,0BFH O
39、UT 21H,AL MOV CX,0010H A1: CMP CX,0000H JNZ A2 MOV AL,40H OUT 21H,ALA2:STI JMP A1IRQ6:MOV AH,09H MOV DX ,OFFSET TABLE INT 21H MOV AX,0120H INT 10H DEC CX MOV AL,20H OUT 20H,AL IRETCODE ENDSEND START實驗66.1STACK SEGMENTDW 32 DUP(?)STACK ENDSDATA SEGMENTVA1 DB 3FH,06H,5BH,4FH,66H,6DH,7DH,07H,7FH,6FH,77
40、H,7FH,39H,3FH,79H,71HDATA ENDSCODE SEGMENTASSUME CS:CODE,DS:DATASTART:MOV AX,DATA MOV DS,AXMOV DX,0606HMOV AL,80HOUT DX,ALA1:LEA SI,VA1MOV CX,0CHA2:MOV DX,0602HMOV AL,SIOUT DX,ALCALL DALLYINC SILOOP A2JMP A1DALLY:PUSH CXMOV CX,0050HA3:MOV AX,0FFFHA4:DEC AXJNZ A4LOOP A3POP CXRETCODE ENDSEND START6.2S
41、TACK SEGMENT STACKDW 32 DUP(?)STACK ENDSDATA SEGMENT LED DB 80H,40H,20H,10H,08H,04H,02H,01HDATA ENDSCODE SEGMENTASSUME CS:CODE,DS:DATA,SS:STACKSTART: MOV AX,DATAMOV DS,AXMOV DX,0606HMOV AL,82HOUT DX,ALA1:MOV DX,0602HIN AL,DXCMP AL,20HJZ A2CMP AL,40HJZ A3MOV DX,0600HMOV AL,00HOUT DX,ALJMP A1A2:MOV DX
42、,0600HMOV AL,0FFHOUT DX,ALJMP A1A3:MOV CX,08HLEA SI,LEDA4:MOV AL,SIMOV DX,0600HOUT DX,ALCALL DALLYNIC SIMOV DX,0602HIN AL,DXCMP AL,40HJNZ A1LOOP A4JMP A3DALLY:PUSH CXPUSH AXMOV CX,0050HAA3:MOV AX,0FFFHAA4:DEC AXJNZ AA4LOOP AA3POP AXPOP CXRETCODE ENDSEND START6.3STACK SEGMENTDW 32 DUP(?)STACK ENDSDAT
43、A SEGMENTVA1 DB 9EH,7AH,9CH,3EH,0EEH,0F6H,0FEH,0E6H,0BEH,0B6H,66H,0F2HDATA ENDSCODE SEGMENTASSUME CS:CODE,DS:DATASTART:MOV AX,DATA MOV DS,AXMOV DX,0606HMOV AL,80HOUT DX,ALA1:LEA SI,VA1MOV CX,0CHA2:MOV DX,0602HMOV AL,SIOUT DX,ALCALL DALLYINC SILOOP A2JMP A1DALLY:PUSH CXMOV CX,0050HA3:MOV AX,0FFFHA4:D
44、EC AXJNZ A4LOOP A3POP CXRETCODE ENDSEND START6.4STACK SEGMENT STACKDW 32 DUP(?)STACK ENDSDATA SEGMENT LED DB 80H,40H,20H,10H,08H,04H,02H,01HDATA ENDSCODE SEGMENTASSUME CS:CODE,DS:DATA,SS:STACKSTART: MOV AX,DATAMOV DS,AXMOV DX,0606HMOV AL,82HOUT DX,ALA1:MOV DX,0602HIN AL,DXCMP AL,04HJZ A2CMP AL,08HJZ
45、 A3MOV DX,0600HMOV AL,0FHOUT DX,ALJMP A1A2:MOV DX,0600HMOV AL,0F0HOUT DX,ALJMP A1A3:MOV CX,08HLEA SI,LEDA4:MOV AL,SIMOV DX,0600HOUT DX,ALCALL DALLYNIC SIMOV DX,0602HIN AL,DXCMP AL,08HJNZ A1LOOP A4JMP A3DALLY:PUSH CXPUSH AXMOV CX,0050HAA3:MOV AX,0FFFHAA4:DEC AXJNZ AA4LOOP AA3POP AXPOP CXRETCODE ENDSE
46、ND START6.5STACK SEGMENTDW 32 DUP(?)STACK ENDSDATA SEGMENTVA1 DB 8EH ,9EH,7AH,9CH,3EH,0EEH,0F6H,0FEH,0E6H,0BEH,0B6H,66H,0F2H,0DAH,60H,0FCHDATA ENDSCODE SEGMENTASSUME CS:CODE,DS:DATASTART:MOV AX,DATA MOV DS,AXMOV DX,0606HMOV AL,80HOUT DX,ALA1:LEA SI,VA1MOV CX,0CHA2:MOV DX,0600HMOV AL,SIOUT DX,ALCALL DALLYINC SILOOP A2JMP A1DALLY:PUSH CXMOV CX,0050HA3:MOV AX,0FFFHA4:DEC AXJNZ A4LOOP A3POP CXRETCODE ENDSEND START6.6STACK SEGMENTDW 32 DUP(?)STACK ENDSDATA SEGMENTTABLE DB 0C0H,30H,0CH,03HD
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經(jīng)權益所有人同意不得將文件中的內容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
- 6. 下載文件中如有侵權或不適當內容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 2024-2030年中國核電行業(yè)發(fā)展前景規(guī)劃研究報告權威版
- 2024-2030年中國板式家具市場運行動態(tài)及投資發(fā)展前景預測報告
- 2024-2030年中國機械千斤頂項目可行性研究報告
- 2024-2030年中國木醋液市場供需狀況及競爭格局分析報告
- 2024-2030年中國有機澳洲堅果市場營銷態(tài)勢與投資盈利預測報告
- 2024-2030年中國智能家庭攝像機器人行業(yè)市場發(fā)展趨勢與前景展望戰(zhàn)略分析報告
- 2024-2030年中國智慧教室行業(yè)應用模式前景與投資規(guī)劃分析報告
- 2024-2030年中國春雷霉素行業(yè)深度調查及投資前景預測報告
- 2024-2030年中國文化地產(chǎn)行業(yè)商業(yè)模式分析投資規(guī)劃研究報告
- 項目經(jīng)理管理辦法
- 廣東省深圳市2022-2024年中考英語一?!稌姹磉_》整理
- 《理工英語4》復習資料
- 神經(jīng)系統(tǒng)練習題附有答案
- 算法競賽入門經(jīng)典(第2版)
- 數(shù)據(jù)治理咨詢項目技術方案
- 海闊天空音樂
- 激發(fā)自身無限潛能喚醒心中的巨人課件
- 生命的重建完整版本
- 供水公司招聘考試題庫及答案
- 呼吸衰竭的護理查房護理查房通用
評論
0/150
提交評論