be80be
Well-Known Member
In mplab 8.15 you can't use variable definitions like this
you get this errors
What I want to know is this not the same thing . And that was just a old way of doing it
Code:
;***** VARIABLE DEFINITIONS
UDATA_SHR
sGPIO res 1 ; shadow copy of GPIO
dc1 res 1 ; delay loop counters
dc2 res 1
;*********************************************
RESET CODE 0x0000 ; processor reset vector
Error[149] C:\LEARNPICASS\PIC_MID_A_1\MA_L1-FLASH_LED-50P-INLINE.ASM 48 : Directive only allowed when generating an object file
Error[149] C:\LEARNPICASS\PIC_MID_A_1\MA_L1-FLASH_LED-50P-INLINE.ASM 55 : Directive only allowed when generating an object file
What I want to know is this not the same thing . And that was just a old way of doing it
Code:
;***** VARIABLE DEFINITIONS
cblock 0x20
sGPIO ; shadow copy of GPIO
dc1 ; delay loop counters
dc2
endc
;**************************************************
org 0x0000 ; processor reset vector
Last edited: