该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
ASSUME CS:CC, DS:QWER
QWER SEGMENT
MSG1 DB 13, 10, 'This program can generate a clockwise spiral matrix of order N.'
DB 13, 10, 'If you type 4, the matrix of order 4 will appear : '
CRLF DB 13, 10, 36
MSG2 DB 13, 10, 'Please input a number(1~9): $'
MSG3 DB 13,10,'1','$'
MSG9 DB 13, 10, 13, 10, 'Press any key to continue...$', 36
BUF DB 15 * 15 DUP(?)
HH DB 8
BUF3 DB 1, 2, 3, 4, 12,13,14, 5, 11,16,15, 6, 10, 9, 8, 7
HH3 DB 4
NN DB 1
DIR_X DB 1
DIR_H DB 1
DIR_L DB 1
N_H DB ?
N_L DB ?
N_H2 DB ?
N_L2 DB ?
QWER ENDS
CC SEGMENT
START:
MOV AX, QWER
MOV DS, AX
LEA DX, MSG1
MOV AH, 9
INT 21H
CALL CR_LF
MOV SI, OFFSET BUF3