实验10,show_str子程序的问题
本帖最后由 demon 于 2011-7-15 13:22 编辑assume cs:codesg
datasg segment
db 'Welcome to masm!',0
datasg ends
codesg segment
start:
mov dh,0
mov dl,3
mov cl,2
mov ax,datasg
mov ds,ax
mov si,0
call show_str
mov ax,4c00h
int 21h
show_str:
push ax
push bx
push cx
push dx
push es
push si
mov ax,0b800h
mov es,ax
mov bx,0
mov al,dh
mov ah,160
mul ah
mov bx,ax
mov al,dl
mov ah,2
mul ah
add bx,ax
mov al,cl
mov ch,0
s:
mov cl,
jcxz end_show
mov es:,cl
mov es:,al
inc si
add bx,2
jmp short s
end_show:
pop si
pop es
pop dx
pop cx
pop bx
pop ax
ret
codesg ends
end start 问题,
行8 列3,以0开始,应该在第9行4列显示,
下面贴代码,都是第8行显示的!
好吧 看到群里的求助,帮你回一下 ,大致浏览了下 ,吃完饭回来再说。。。 鱼C# 发表于 2011-7-15 12:01 static/image/common/back.gif
好吧 看到群里的求助,帮你回一下 ,大致浏览了下 ,吃完饭回来再说。。。
{:5_109:} 好,
这题目我纠结了一天一夜了!
完全没有问题 没必要纠结这个。 wangwum 发表于 2011-7-15 13:03 static/image/common/back.gif
没必要纠结这个。
那就是我这的显示问题了,
我也认为我写的逻辑没有错,虽然写的复杂了点!
闲逛,偶遇一贴
syw4122994 发表于 2011-7-15 15:36 static/image/common/back.gif
闲逛,偶遇一贴
你的实验十成功运行了嘛,
页:
[1]