|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
assume cs:code
a segment
db 1,2,3,4,5,6,7,8
a ends
b segment
db 1,2,3,4,5,6,7,8
b ends
c segment
db 0,0,0,0,0,0,0,0
c ends
code segment
start: mov ax,a
mov ds,ax
mov ax,b
mov es,ax
mov bx,0
mov cx,8
s: mov al,[bx]
add es:[bx],al
inc bx
loop s
mov ax,c
mov ds,ax
mov bx,0
mov cx,8
s0: mov al,es:[bx]
mov [bx],al
inc bx
loop s0
mov ax,4c00h
int 21h
code ends
end start
c:\masm>ml 6.asm
Microsoft (R) Macro Assembler Version 6.15.8803
Patched for you by promethee [ECL] in the year 2001 - enjoy
Copyright (C) Microsoft Corp 1981-2000. All rights reserved.
Assembling: 6.asm
error A4910: cannot open file: c:\masm\ML.err
6.asm(15) : error A2008: : c
6.asm(17) : error A2034:
6.asm(19) : error A2008: : c
6.asm(43) : error A2008: : c
在dos上运行时这个结果,求解 |
|