Hi Darrel, this is what I have:
INCLUDE "Defines.bas"
INCLUDE "EE_Vars.PBP" 'Darrel Taylors EE_Vars program
INCLUDE "VarDefs.bas" ' These are my variable definitions
Goto start 'Jump over assembly routine
INCLUDE "AsmInt.bas" 'Assembly interrupt service routines
INCLUDE "200819_2.BAS" 'Model#, Serial# configuration
INCLUDE "LcdText.bas" 'Strings, lookup tables
SysDat VAR WORD[100] 'This is in the VarDefs.bas include file listed above
This is also in the VarDefs.bas INCLUDE FILE
msNLamps VAR SysDat[50]:@ EE_var _msNLamps, WORD, 2
SysDat is an Array the I created for looping through variables but this still seems to be ok. The 'start' label is after all of this. Shouldn't msNLamps be '2' when first programmed? I can set it to the default value if I do:
@ EE_write_default _msNlamps
after the start:
Is there a way to reset all vars to the default value as if this was the 'First Run' you talk about. As I understand it if I assign default values using the 'EE_var' command that the default value is written and the variable will always be powered up to that value unless you change it. I seem to be getting values of 'FFFF' for word on power up until I do a 'EE_write_default'
I know I've got something out of sorts but I'll keep trying. I also really like the EE_Vars program and thanks for sharing it. Starting to study macro's now too, but they don't really click yet.
Thanks, Bob
Shouldn't msNLamps be 2




Bookmarks