程序如下。编译通过,但是一load program 就会报错
data verification failed at address 0xff80.please verify target memory and memory map。 按照我的cmd配置应该不会出现这个问题才对啊。。求助
e1.obj -o e1.out -m e1.map -e start MEMORY {PAGE 0: ROMrigin=0xf000, length=0x0100 VECS rigin=0xFF80, length=0x0010 PAGE 1: SPRAMrigin=0x0080, length=0x0200 DARAMrigin=0x2000, length=0x0100 } SECTIONS {.vectors :>VECS PAGE 0 .text :>ROM PAGE 0 .data :>ROM PAGE 0 .bss :>SPRAM PAGE 1 STK :>DARAM PAGE 1 }
.title "e1.asm" .mmregs STACK .usect "STK",10H .bss x,5 .bss y,1 .def _c_int00 .data table: .word 10,20,30,40,50 .sect ".vectors" reset B _c_int00 NOP NOP .space 4*16 .text _c_int00: STM #0,SWWSR LD #1,DP STM #STACK+10H,SP STM #x,AR1 RPT #4 MVPD table,*AR1+ LD #0,A CALL SUM end: B end SUM: STM #x,AR3 STM #4,AR4 Loop: ADD *AR3+,A BANZ Loop,*AR4- STL A,@y RET .end |