mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-08-30 14:52:51 +08:00
Add sfr16 SFR_REG_ADDR_U16.
So instead do it manual split a uint16_t in to two uint8_t.
The compiler can do it, so reduces user error.
Note: compiler writes the lower/LSB part first.
When that is importent this can´t be used.
Assembly is still the same except note above.
This commit is contained in:
committed by
René van Dorst
parent
250beae09b
commit
af0135bcce
@@ -1,8 +1,12 @@
|
||||
/* SFR control registers for switch register access */
|
||||
__sfr __at(0xa0) SFR_EXEC_GO;
|
||||
__sfr __at(0xa1) SFR_EXEC_STATUS;
|
||||
__sfr16 __at(0xa2a3) SFR_REG_ADDR_U16;
|
||||
__sfr __at(0xa2) SFR_REG_ADDRH;
|
||||
__sfr __at(0xa3) SFR_REG_ADDRL;
|
||||
__sfr16 __at(0xa4a5) SFR_DATA_U16;
|
||||
__sfr32 __at(0xa4a5a6a7) SFR_DATA_U32;
|
||||
__sfr32 __at(0xa7a6a5a4) SFR_DATA_U32LE;
|
||||
__sfr __at(0xa4) SFR_DATA_24;
|
||||
__sfr __at(0xa5) SFR_DATA_16;
|
||||
__sfr __at(0xa6) SFR_DATA_8;
|
||||
|
||||
Reference in New Issue
Block a user