日期:2014-05-17 浏览次数:20747 次
.386
.MODEL FLAT
ExitProcess PROTO NEAR32 stdcall, dwExitCode:DWORD
INCLUDE io.h
cr EQU 0dh
Lf EQU 0ah
.STACK 4096
.DATA
prompt1 BYTE cr,lf,lf,"The multiplication table is:",cr,lf,lf,0
number BYTE 16 DUP (?)
cheng BYTE '*',0
deng BYTE '=',0
space BYTE ' ',0
hh BYTE cr,lf,0
.CODE
_start:
mov ax,0
mov bx,0
mov cx,1
output prompt1
one:
mov ax,cx
inc bx
mul bx
itoa number,cx
output [number+4]
output cheng;输出’*’
itoa number,bx
output [number+5]
output deng;输出‘=‘
&