请教高手!!!
*.asm程序: .title "ex9"
.global _c_int00
.mmregs
SM_ADDR .set 1003h
SM_DATA .set 60h
.sect ".vectors"
reset B _c_int00
NOP
NOP
.space 31*4*16
.text
_c_int00: LD #0h,DP;
STM #2000h,SP;
RSBX INTM;
STM #07FFFh,SWWSR;
SSBX XF
ST #1007,CLKMD;
RPT #0FFh
NOP
STM #0FFFFh,IFR
ORM #000h,IRM
RSBX SXM
aaa nop
CALL LED07;
CALL LED8F;
b aaa
LED8F ST #8000h,SM_DATA
ST #07H,AR3
WRDENG: PORTW SM_DATA<SM_ADDR;8-f
RPT #10000
NOP
ST #FFFh,AR6
call delay
ADDM #1100H,SM_DATA
BANZ WRDENG,*AR3-
RET
LED07 NOP
ST #07H,AR3
STM #0H,SM_DATA
WRDENG1 NOP;0-7
PORTW SM_DATA,SM_ADDR
ST #02fffH,AR6
call delay
ADDM #1100H,SM_DATA
BANZ WRDENG1,*AR3-
RET
delay STM #0F0h,AR7;
BANZ $,*AR7-
BANZ delay,*AR6-
RET
*.cmd程序:
MEMORY
{
PAGE 0: VECS:origin=0xff80,length=0x80
PROG:orgin=0x1000,length=0x1000
PAGE 1DATA:orgin=0x2500,length=0xc000
STACK:orgin=0x2000,length=0x100
}
SECTIONS
{
.VECTORS: {}>PAGE 0
.text : {}>PROG PAGE0
.data : {}>DATA PAGE 1
.stack : {}>STACK PAGE 1
}
请问下程序是什么意思啊 ?还有origin=0xff80,这个0xff80改成多少,程序的运行结果不会改变啊!
怎么样改成输出是 0
01
012
0123
...
01234567
?