王爽的汇编第二版实验5第5题中 c segment 用c 定义这个段为什么编译的时候会提示错误,换个字符就可以编译
assumecs:codeasegmentdb1,2,3,4,5,6,7,8aendsbsegmentdb1,2,3,4,5,6,7,8bendscsegmentdb0,...
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 ss,ax
mov bx,0
mov cx,8
s: mov al,[bx]
add al,ss:[bx]
inc bx
loop s
mov bx,c
mov es,bx
mov bx,0
mov cx,8
s0: mov es:[bx],[bx]
inc bx
loop s0
mov ax 4c00h
int 21h
code ends
end start 展开
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 ss,ax
mov bx,0
mov cx,8
s: mov al,[bx]
add al,ss:[bx]
inc bx
loop s
mov bx,c
mov es,bx
mov bx,0
mov cx,8
s0: mov es:[bx],[bx]
inc bx
loop s0
mov ax 4c00h
int 21h
code ends
end start 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询