This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
codestart程序如下:
WD_DISABLE .set 1
.ref _c_int00
.sect "codestart"
code_start:
.if WD_DISABLE == 1
LB wd_disable
.else
LB _c_int00
.endif
.if WD_DISABLE == 1
.text
wd_disable:
SETC OBJMODE
EALLOW
MOVZ DP, #7029h>>6
MOV @7029h, #0068h
EDIS
LB _c_int00
.endif
.end
疑问:
1、
语句
WD_DISABLE .set 1
和语句
.ref _c_int00
为什么不用放到
语句.sect "codestart"
后面去,放到语句
.sect "codestart"
后面应该也可以吧?放在语句
.sect "codestart"前面的话,
它们就被默认链接到.text段了吧?
2、
同样
语句
.if WD_DISABLE == 1
为什么没有放到.text下面?放到语句
.text
下面也可以吧?放在语句
.text
前面的话,语句
.if WD_DISABLE == 1
是被链接到.sect段去了吧?