TITLE EXAMPLE PROGRAMDATA SEGMENT VARX DW 15H VARY DW 10H VARZ DW ?DATA ENDSSTACK1 SEGMENT PARA STACK DW 20H DUP(0)STACK1 ENDSCODE SEGMENT ASSUME CS:CODE,DS:DATA,SS:STACK1START: MOV AX,DATA MOV DS,AX MOV AX,VARX SHL AX,1 ADD AX,VARX ADD AX,VARY SUB AX,5 SAR AX,1 MOV VARZ,AX MOV AH,4CH INT 21HCODE ENDS END START
STACK1 SEGMENT PARA STACK DW 20H DUP(0)STACK1 ENDSCODE SEGMENT VARX DW 15H VARY DW 10H VARZ DW ? ;ASSUME CS:CODE,DS:CODE,SS:STACK1START: MOV AX,CODE MOV DS,AX MOV AX,VARX SHL AX,1 ADD AX,VARX ADD AX,VARY SUB AX,5 SAR AX,1 MOV VARZ,AX MOV AH,4CH INT 21HCODE ENDS END START
TITLE EXAMPLE PROGRAMDATA SEGMENTDATA ENDSSTACK1 SEGMENT PARA STACK DW 20H DUP(0)STACK1 ENDSCODE SEGMENT VARX DW 15H VARY DW 10H VARZ DW ? ASSUME CS:CODE,DS:DATA,SS:STACK1START: MOV AX,CODE MOV DS,AX MOV AX,VARX SHL AX,1 ADD AX,VARX ADD AX,VARY SUB AX,5 SAR AX,1 MOV VARZ,AX MOV AH,4CH INT 21HCODE ENDS END START
TITLE EXAMPLE PROGRAMDATA SEGMENT VARX DW 15H VARY DW 10H VARZ DW ?DATA ENDSSTACK1 SEGMENT PARA STACK DW 20H DUP(0)STACK1 ENDSCODE SEGMENT ASSUME CS:CODE,ES:CODE,SS:STACK1START: MOV AX,DATA MOV DS,AX MOV AX,VARX SHL AX,1 ADD AX,VARX ADD AX,VARY SUB AX,5 SAR AX,1 MOV VARZ,AX MOV AH,4CH INT 21HCODE ENDS END START
引用第9楼hhbhhb于2007-10-31 10:02发表的 :[code]TITLE EXAMPLE PROGRAMDATA SEGMENT VARX DW 15H VARY DW 10H.......
引用第13楼ity于2007-10-31 22:30发表的 :你什么时候又跑来这边混了............