#include "stdio.h"
main()
{
int i=1;int j=1;
int I[9];
int J[9];
printf("the projets is 9*9:");
for (i=1;i<10;i++)
printf("%d*%d=",I[i],J[j]);
for (j=1;j<10||i<0;j++,i--)
printf("%d*%d=",I[i],J[j]);
getch();
}
DATA SEGMENT VA DB 1,2,3,4,5,6,7,8,9 DATA ENDS
STACK SEGMENT PARA STACK DW 20 DUP(0) STACK ENDS
CODE SEGMENT ASSUME CS:CODE,DS:DATA,SS:STACK START: MOV AX,DATA MOV DS,AX MOV SI,0 MOV CX,9H LOP1: PUSH CX MOV CL,VA[SI] MOV CH,0H MOV BL,VA[SI] MOV BH,1H LOP2: PUSH CX MOV AL,BH MUL BL AAM PUSH AX AND BH,0FH ADD BH,30H MOV DL,BH MOV AH,02H INT 21H MOV AH,02H MOV DL,'*' INT 21H AND BL,0FH ADD BL,30H MOV AH,02H MOV DL,BL INT 21H MOV AH,02H MOV DL,'=' INT 21H POP AX PUSH AX AND AH,0FH ADD AH,30H MOV DL,AH MOV AH,02H INT 21H POP AX AND AL,0FH ADD AL,30H MOV DL,AL MOV AH,02H INT 21H MOV AH,02H MOV DL,20H INT 21H AND BL,0FH AND BH,0FH INC BH POP CX LOOP LOP2 MOV AH,02H MOV DL,0DH INT 21H MOV AH,02H MOV DL,0DH INT 21H MOV AH,02H MOV DL,0AH INT 21H POP CX INC SI LOOP LOP1 MOV AH,4CH INT 21H CODE ENDS END START 前几天有事,没来