用汇编语言输出一段数组
2006-12-04 21:34阅读:
在屏幕上写出15行,16列的数组,数组的内容:从10h,到100h的连续数字
;****************************************
;path of program:exp/page19/eg2.1
;name of program:prt_asc.asm
;****************************************
;****************************************
code segment
;----------------------------------------
main
proc
far
assume
cs:code
;----------------------------------------
start:
push
ds
mov
ax,0
push
ax
;----------------------------------------
mov
bl,10h
mov
cx,15
displine:
push
cx
disprow:
mov
cx,16
mov
dl,bl
mov
ah,2
int
21h
add
bl,1h
loop
disprow
pop
cx
call crlf
loop displine
ret
;----------------------------------------
main endp
;----------------------------------------
crlf proc near
mov dl,0dh
mov ah,2
int 21h
mov dl,0ah
mov ah,2
int 21h
ret
crlf endp
;----------------------------------------
code ends
;****************************************
end start
是写出来了,可是没办法写出正确的行列式啊,怎么办?