I have installed the latest DT_INT files but my following code is giving problem.
Without any variable declaration, it is showing out of memory....
Code:
Include "modedefs.bas"
INCLUDE "DT_INTS-14.bas" ; Base Interrupt System
INCLUDE "ReEnterPBP.bas" ; Include if using PBP interrupts
DEFINE NO_CLRWDT 1
@ __Config _LP_OSC & _WDT_OFF & _PWRTE_ON & _MCLRE_OFF & _BODEN & _CP & _CPD
PAUSE 50
TRISA = %000010
TRISC = %000000
CMCON = 7
ANSEL = 0
OPTION_REG = %10000111 ' RAPU = off, PS 1:256 to TMR0
PORTA=0
PORTC=0
wsave VAR BYTE $20 SYSTEM ' alternate save location for W
ASM
INT_LIST macro ; IntSource, Label, Type, ResetFlag?
INT_Handler TMR1_INT, _counting, PBP, yes
endm
INT_CREATE ; Creates the interrupt processor
ENDASM
@ INT_ENABLE TMR1_INT ; enable external (INT) interrupts
counting:
@ INT_RETURN
The error in the compiler window says:
ERROR: Unable to fit variable RS2_SaveHalting build on first failure as requested.
BUILD FAILED: Sat Dec 11 17:28:10 2010
Bookmarks