在仿真时出错,下面是出错的问题,请高手指教
代码 segment'ram0'BYTES .Roo ds.b 1 .Ro1 ds.b 1 .Ro2 ds.b 1 .Ro3 ds.b 1 .Ro4 ds.b 1 .Ro5 ds.b 1 .Ro6 ds.b 1 .Ro7 ds.b 1 .Ro8 ds.b 1
MOV TIM1_SMCR,#00H BRES TIM1_ETR,#6 MOV TIM1_PSCRH,#00H MOV TIM1_PSCRL,#01H MOV TIM1_ARRH,#{HIGH 10000} MOV TIM1_ARRL,#{LOW 10000} MOV TIM1_RCR,#00H MOV TIM1_CR1,#04H BSET TIM1_EGR,#0 BSET TIM1_IER,#0 BSET TIM1_CR1,#0
interrupt TIM1_Interrupt_Over TIM1_Interrupt_Over.l BRES TIM1_SR1,#0 DEC R10 JRNE TIM1_Interrupt_Over_EXIT MOV R10,#50 BCPL PC_ODR,#4 TIM1_Interrupt_Over_EXIT.L IRET IRET IRET IRET
出错问题: ----------- Project my - ST Assembler Linker - Configuration Debug -------------
Assembling mapping.asm...
asm -sym -li=Debug\mapping.lsr mapping.asm -I="F:\Program Files\STM8\asm\include" -obj=Debug\mapping.obj
STMicroelectronics assembler v4.52
No errors on assembly of 'f:\program files\chengxu\stm8\led_1\mapping.asm'
Assembling main.asm...
asm -sym -li=Debug\main.lsr main.asm -I="F:\Program Files\STM8\asm\include" -obj=Debug\main.obj
STMicroelectronics assembler v4.52
f:\program files\chengxu\stm8\led_1\main.asm(52): as1 : Fatal 70: Cannot have DS.X in segment containing code/data! .. only for [void] segs! 'C->D'
The command: "asm -sym -li=Debug\main.lsr main.asm -I="F:\Program Files\STM8\asm\include" -obj=Debug\main.obj" has failed, the returned value is: 1
exit code=1.
my.s19 - 1 error(s), 0 warning(s)
[ 本帖最后由 STM8S105C6 于 2012-4-20 17:22 编辑 ]
|