Quote Originally Posted by richard View Post
in dt's code the var is declared in a asm routine and as EXT in pbp


if you declare a var in pbp and wish to refer to it in asm it must be prefixed with an underscore as others have stated
That is from post #1 but in #3 which Talat is using
Code:
DutyHold1 VAR WORD BANK0 SYSTEM      ' holds next dutycycle, synch with PWM 
DutyHold2 VAR WORD BANK0 SYSTEM      '
is the way they are declared and again "_" is not used.