101 |
If you do not define \c __SFR_OFFSET (so it will be 0x20 by default), all |
If you do not define \c __SFR_OFFSET (so it will be 0x20 by default), all |
102 |
special register addresses are defined as memory addresses (so \c SREG is |
special register addresses are defined as memory addresses (so \c SREG is |
103 |
0x5f), and (if code size and speed are not important, and you don't like |
0x5f), and (if code size and speed are not important, and you don't like |
104 |
the ugly #if above) you can always use lds/sts to access them. But, this |
the ugly \#if above) you can always use lds/sts to access them. But, this |
105 |
will not work if <tt>__SFR_OFFSET</tt> != 0x20, so use a different macro |
will not work if <tt>__SFR_OFFSET</tt> != 0x20, so use a different macro |
106 |
(defined only if <tt>__SFR_OFFSET</tt> == 0x20) for safety: |
(defined only if <tt>__SFR_OFFSET</tt> == 0x20) for safety: |
107 |
|
|