汇编_显示九九乘法表(附源代码)

  • 格式:doc
  • 大小:55.50 KB
  • 文档页数:3

下载文档原格式

  / 3
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

.386

.MODEL FLAT

ExitProcess PROTO NEAR32 stdcall, dwExitCode:DWORD

INCLUDE io.h

cr EQU 0dh

Lf EQU 0ah

.STACK 4096

.DA TA

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;输出‘=‘

itoa number,ax

output [number+4]

output space;输出空格

cmp bx,cx

jb one

output hh

inc cx

cmp cx,9

ja forEnd

mov bx,0

jmp one

forEnd:

INVOKE ExitProcess, 0

PUBLIC _start

END

相关主题