|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
[img]file:///D:\用户目录\Documents\Tencent Files\583883615\Image\Group\6`CAEQEEWP9(JLU{4GS6Z[F.jpg[/img][img=0,1]file:///D:\用户目录\Documents\Tencent Files\583883615\Image\Group\6`CAEQEEWP9(JLU{4GS6Z[F.jpg[/img]
[img]file:///D:/%E7%94%A8%E6%88%B7%E7%9B%AE%E5%BD%95/Documents/Tencent%20Files/583883615/Image/Group/6%60CAEQEEWP9(JLU%7B4GS6Z[F.jpg[/img][img=0,1]file:///D:/%E7%94%A8%E6%88%B7%E7%9B%AE%E5%BD%95/Documents/Tencent%20Files/583883615/Image/Group/6%60CAEQEEWP9(JLU%7B4GS6Z[F.jpg[/img]
第一个程序
assume cs:code
code segment
a db 1,2,3,4,5,6,7,8
b dw 0
start: mov si, 0
mov cx, 8
s: mov al, a[si]
mov ah, 0
add b, ax
inc si
loop s
mov ax, 4c00h
int 21h
code ends
end start
-----------------------------------------------------------
第二个程序
assume cs:code
code segment
a db 1,2,3,4,5,6,7,8
c dw 0
start: mov si, 0
mov cx, 8
s: mov al, a[si]
mov ah, 0
add c, ax
inc si
loop s
mov ax, 4c00h
int 21h
code ends
end start
------------------------------------------------------------------------------
c不能作为标号吗
为什么第一个程序没有错,
而第二个程序就报错呢?
|
|