汇编第六章第五题的课后练习
我的代码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 sp,ax
mov ax,b
mov ss,bx
mov ax,c
mov ds,ax
mov bx,0
mov cx,8
s:push
add bx,2
loop s
mov bx,0
mov cx,8
s1:pop cs:
add bx,2
loop s1
mov ax,4c00
int 21h
code ends
end start
错误提示: Assembling: abc+.asm
abc+.asm(10) : error A2008: syntax error : c
abc+.asm(11) : error A2034: must be in segment block
abc+.asm(12) : error A2008: syntax error : c
abc+.asm(19) : error A2008: syntax error : c
abc+.asm(35) : error A2048: nondigit in number
周末了祝你我周末愉快! NB
页:
[1]