我写了一个定时器溢出的程序<br />我把总中断打开了,定时器中断也打开了,cont也设置了,开门狗关掉了<br />运行后,产生了中断溢出,rf的第0位置1。可是程序没有进入0x08 的 中断程序<br />不知是为什么??<br /><br />程序如下:<br />r20 == 0x20<br />org 0x00<br />jmp loop01<br />org 0x08<br />int_pro:disi<br />clr iocf<br />inc r20 <br />eni<br />reti<br />loop01:eni<br />mov a,@0x01<br />iow iocf<br />mov a,@0x00<br />iow ioce<br />mov a,@0x03<br />contw<br /><br />loop:nop<br />nop<br />jmp loop<br /><br /> |