| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 3022 人关注过本帖
标题:error A2105: Expected: instruction or directive谁给看看
只看楼主 加入收藏
gxppa2006
Rank: 1
等 级:新手上路
帖 子:178
专家分:0
注 册:2007-2-27
收藏
 问题点数:0 回复次数:1 
error A2105: Expected: instruction or directive谁给看看

data segment
count dw 1
msg db 'The message is show',0dh,0ah,'$'
data ends
code segment
assume cs:code,ds:data
start: mov ax,data
mov ds,ax
mov al,1ch
mov ah,35h
int 21h
push es
push bx
push ds

mov dx,offset show
mov ax,seg show
mov ds,ax
mov al,1ch
mov ah,25h
int 21h

pop ds
in al,21h
and al,11111110b
out 21h,al
sti

mov di,20000
delay: mov si,30000
delay1: dec si
jnz delay1
dec di
jnz delay

pop dx
pop ds
mov al,1ch
mov ah,25h
int 21h

mov ah,4ch
int 21h

show proc near
push ds
push ax
push cx
push dx

mov ax,data
mov ds,ax
sti

dec count
inz exit1

mov dx,offset msg
mov ah,09h
int 21h

mov count,182
exit1:
cli
pop dx
pop cx
pop ax
pop ds
iret
show endp
code ends
end start



Microsoft (R) Macro Assembler Version 5.00
Copyright (C) Microsoft Corp 1981-1985, 1987. All rights reserved.

Object filename [int.OBJ]:
Source listing [NUL.LST]:
Cross-reference [NUL.CRF]:
int.asm(61): error A2105: Expected: instruction or directive

50820 + 415452 Bytes symbol space free

0 Warning Errors
1 Severe Errors

上面的错误为什么啊

搜索更多相关主题的帖子: directive instruction mov error Expected 
2007-07-05 08:30
herbert_1987
Rank: 5Rank: 5
等 级:贵宾
威 望:15
帖 子:1314
专家分:0
注 册:2007-5-13
收藏
得分:0 

show proc near
push ds
push ax
push cx
push dx

mov ax,data
mov ds,ax
sti

dec count
inz exit1

应该是 jnz exit1 吧


人生重要的不是所站的位置,而是所朝的方向
2007-07-05 09:16
快速回复:error A2105: Expected: instruction or directive谁给看看
数据加载中...
 
   



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

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