求指导,关于一个程序~
程序实现的功能是将a段和b段中数据依次相加,将结果存到c段中~运行后出现如下错误提示:
error A4910:cannot open file:E:\TRY\ML.err
68.asm<11>:error A2008: :c
68.asm<12>:error A2034:
68.asm<13>:error A2008: :c
68.asm<29>:error A2008: :c
程序代码:
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,8H 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] add [bx],al inc bx loop s0 mov ax,4C00H int 21H code ends end start
[ 本帖最后由 ishxiao 于 2011-10-31 20:40 编辑 ]