| ??? 12/24/02 22:14 Read: times |
#34975 - Creating a 'Config' file |
Hello, all.
I'm trying to implement a configuration file in my program. Basically, I want the configuration file to control which portions of the code are assembled. FYI: I'm using Keil's Eval program. For example, I would setup the config file like this: PUBLIC CAMERA ;CAMERA EQU 1 CAMERA EQU 2 And in the (separate) camera driver module: EXTRN NUMBER (CAMERA) $IF (CAMERA=1) ... $ELSEIF (CAMERA=2) ... $ENDIF However, this has not worked as I planned. It assembles and links fine, but the value of CAMERA is not being 'passed' to the second module (CAMERA is defined but has no value in the second module). Can anyone help? |
| Topic | Author | Date |
| Creating a 'Config' file | 01/01/70 00:00 | |
| RE: Creating a 'Config' file | 01/01/70 00:00 | |
RE: Creating a \'Config\' file | 01/01/70 00:00 |



