I have just downloaded this version and it is quite different to the v5.7 that I was using. I have read the Quick Start and parts of the User Guide but cannot find an explanation of the data initialisation syntax. I opened the template for the PIC16F84A and this is an exract:-
INT_VAR UDATA 0x0C
w_temp RES 1 ; variable used for context saving
status_temp RES 1 ; variable used for context saving
; example of using Overlayed Uninitialized Data Section
; in this example both variables are assigned the same GPR location by linker
G_DATA UDATA_OVR ; explicit address can be specified
flag RES 2 ; temporary variable (shared locations - G_DATA)
G_DATA UDATA_OVR
count RES 2
From this I gather that one or more bytes can be reserved using RES 1, RES 2, etc.
Does this mean that a variable can be 16 bits long? This appears to be the case in the example above for the variable "count". So does this mean that the variable "count" is 16 bits and that the programmer can use "count" in the same manner as if it were only 8 bits?
What does INT_VAR UDATA mean? It appears to be the heading for general variables. They do not use cblock and endc.
What does G_DATA UDATA_OVR mean? They have used this heading for the variable "flag" and also for "count".
Does this mean that very RES 2 variable has to be preceeded by G_DATA UDATA_OVR ?
I looked in PICLIst for guidence and could not find any. Any assistance will be appreciated.
INT_VAR UDATA 0x0C
w_temp RES 1 ; variable used for context saving
status_temp RES 1 ; variable used for context saving
; example of using Overlayed Uninitialized Data Section
; in this example both variables are assigned the same GPR location by linker
G_DATA UDATA_OVR ; explicit address can be specified
flag RES 2 ; temporary variable (shared locations - G_DATA)
G_DATA UDATA_OVR
count RES 2
From this I gather that one or more bytes can be reserved using RES 1, RES 2, etc.
Does this mean that a variable can be 16 bits long? This appears to be the case in the example above for the variable "count". So does this mean that the variable "count" is 16 bits and that the programmer can use "count" in the same manner as if it were only 8 bits?
What does INT_VAR UDATA mean? It appears to be the heading for general variables. They do not use cblock and endc.
What does G_DATA UDATA_OVR mean? They have used this heading for the variable "flag" and also for "count".
Does this mean that very RES 2 variable has to be preceeded by G_DATA UDATA_OVR ?
I looked in PICLIst for guidence and could not find any. Any assistance will be appreciated.