标题:[求助]将X和Y相加显示到屏幕上,为什么编译错误?
取消只看楼主
电脑爱好者
Rank: 1
等 级:新手上路
帖 子:43
专家分:0
注 册:2006-5-6
 问题点数:0 回复次数:0 
[求助]将X和Y相加显示到屏幕上,为什么编译错误?

stack segment stack
db 100h dup(0)
stack ends

data segment
x db 1h
y db 2h
data ends

code segment
assume cs:code,ds:data,ss:stack
start:
mov ax,data
mov ds,ax
mov al,x
mov bl,y
add al,bl
mov dl,al
mov ah,2h
int 21h
mov ah,4ch
int 21h
code ends
end start

[此贴子已经被作者于2007-9-28 19:15:37编辑过]

搜索更多相关主题的帖子: mov stack 屏幕 segment ends 
2007-09-28 19:14



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-173775-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 1.062991 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved