|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
- assume cs:codesg,ss:stacksg,ds:datasg
- stacksg segment
- dw 0,0,0,0,0,0,0,0
- stacksg ends
- datasg segment
- db '1. display '
- db '2. brows '
- db '3. replace '
- db '4. modify '
- datasg ends
- codesg segment
- start:mov ax,stacksg
- mov ss,ax
- mov sp 16
- mov ax,datasg
- mov ds,ax
- mov bx,0
-
- mov cx,4
- s0: push cx
- mov si,0
- mov cx,4
- s: mov al,[bx+3+si]
- and al,11011111b
- mov [bx+3+si],al
- inc si
- loop s
-
- add bx,16
- pop cx
- loop s0
-
- mov ax,4c00h
- int 21h
- codesg ends
复制代码
#########################################################
D:\resource\folder>masm 1.txtMicrosoft (R) MASM Compatibility DriverCopyright (C) Microsoft Corp 1993. All rights reserved.
Invoking: ML.EXE /I. /Zm /c /Ta 1.txt
Microsoft (R) Macro Assembler Version 6.15.8803 Patched for you by promethee [ECL] in the year 2001 - enjoyCopyright (C) Microsoft Corp 1981-2000. All rights reserved.
Assembling: 1.txt1.txt(16) : error A2008: syntax error : in instruction1.txt(25) : error A2070: invalid instruction operands1.txt(27) : error A2070: invalid instruction operands
这是为什么呢?
|
|