| ??? 12/31/02 16:25 Read: times |
#35298 - bit aliasing in Raisonance |
Hi,
I inherited some code and am trying to port it to the Raisonance compiler, but I'm having a problem. Virtually all of the variables are global. I know that it would be much better to dump them and rewrite, but we don't have time to do so at this point. What I want to do is make aliases for certain bits. I read the manual and help files and I am declaring char variables in bdata space, then declaring bit aliases. I want to extern the bit aliases for use throughout the program. Lets say I have two files, one .c with globals, and another .h with externs for the globals. In the .c file, I have the following at 0x20 bdata char blah = 0; sbit flag0 = blah^0; sbit flag1 = blah^1; . . . sbit flag7 = blah^7; In the .h file, I have... extern bdata char blah; extern sbit flag0; extern sbit flag1; . . . extern sbit flag7; Problem: the "extern sbit" gives me an error saying there is no absolute allocation. How do I alias the bits in a char in bdata and extern them so that I can share them among the rest of my program? Judy Harrigan |
| Topic | Author | Date |
| bit aliasing in Raisonance | 01/01/70 00:00 | |
| RE: bit aliasing in Raisonance | 01/01/70 00:00 | |
| RE: bit aliasing in Raisonance | 01/01/70 00:00 | |
| RE: bit aliasing in Raisonance | 01/01/70 00:00 | |
| RE: bit aliasing in Raisonance Judy | 01/01/70 00:00 | |
RE: bit aliasing in Raisonance | 01/01/70 00:00 |



