汇编输出9个星号,第一行1个,第二行三个,第三行5个,怎么写?主要是不知道怎么换行
我的代码怎么加入换行datasegsegmentidw?kdw?datasegendscodesegsegmentassumecs:codeseg,ds:datasegm...
我的代码怎么加入换行
dataseg segment
i dw ?
k dw ?
dataseg ends
codeseg segment
assume cs:codeseg,ds:dataseg
main:
mov ax,dataseg
mov ds,ax
mov al,'*'
mov ah,0eh
int 10h
mov k,0
fork:
mov ah,0eh
int 10h
inc k
cmp k,3
jb fork
mov i,0
fori:
mov ah,0eh
int 10h
inc i
cmp i,5
jb fori
mov ax,4c00h
int 21h
codeseg ends
end main 展开
dataseg segment
i dw ?
k dw ?
dataseg ends
codeseg segment
assume cs:codeseg,ds:dataseg
main:
mov ax,dataseg
mov ds,ax
mov al,'*'
mov ah,0eh
int 10h
mov k,0
fork:
mov ah,0eh
int 10h
inc k
cmp k,3
jb fork
mov i,0
fori:
mov ah,0eh
int 10h
inc i
cmp i,5
jb fori
mov ax,4c00h
int 21h
codeseg ends
end main 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询