瑞星卡卡安全论坛

首页 » 技术交流区 » 系统软件 » 菜鸟学汇编,出现了问题,来帮个~~~忙
dady欢欢 - 2007-2-15 12:01:00
刚学汇编,这段代码 
引用:
assumer cs:abc
abc segment
  mov ax,2
  add ax,ax
  add ax,ax
  mov ax,4c00h
  int 21h
  abc ends
end

用masm编译产生错误
引用:
Microsoft (R) Macro Assembler Version 5.00
Copyright (C) Microsoft Corp 1981-1985, 1987.  All rights reserved.

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

  50770 + 450110 Bytes symbol space free

      0 Warning Errors
      1 Severe  Errors

怎么解决

dady欢欢 - 2007-2-15 12:08:00
已经解决:assumer多了一个r,丢脸
网络骑士HKC - 2007-2-15 18:44:00
assume cs:abc  ;这里
abc segment
mov ax,2
add ax,ax
add ax,ax
mov ax,4c00h
int 21h
abc ends
end

呵呵,应该是笔误吧,打快了经常会出这种问题
1
查看完整版本: 菜鸟学汇编,出现了问题,来帮个~~~忙