;输出九九乘法表
DATA SEGMENTI DB 1RESULT DW ?CXX DW ?
DATA ENDS
CODE SEGMENTASSUME CS:CODE,DS:DATA
START:MOV DX,DATAMOV DS,DXMOV RESULT,AXLEA SI,RESULTMOV CX,9;N
L0:MOV BL,1;J
L1:MOV AH,2;MOV DL,BL;ADD DL,30HINT 21HMOV DL,'*'INT 21HMOV DL,I;显示iADD DL,30HINT 21HMOV DL,'='INT 21HMOV AL,IMUL BLAAMADD AX,3030HMOV RESULT,AX;保护 dos调用会影响ALMOV AH,02H;显示结果MOV DL,[SI+1];显示高8INT 21HMOV DL,[SI];显示低8INT 21HMOV DL,' ';MOV CXX,CX ;延时MOV CX,65535
STOP: LOOP STOPMOV CX,CXX;INT 21HCMP BL,IJZ L2;第二层循环结束INC BLJMP L1
L2:INC IMOV DL,10;换行INT 21HLOOP L0MOV AH,4CHINT 21HCODE ENDSEND START