Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- typedef union _POINTER
- {
- struct
- {
- BYTE bLow;
- BYTE bHigh;
- //byte bUpper;
- };
- WORD _word; // bLow & bHigh
- //pFunc _pFunc; // Usage: ptr.pFunc(); Init: ptr.pFunc = &<Function>;
- BYTE* bRam; // Ram byte pointer: 2 bytes pointer pointing
- // to 1 byte of data
- WORD* wRam; // Ram word poitner: 2 bytes poitner pointing
- // to 2 bytes of data
- ROM BYTE* bRom; // Size depends on compiler setting
- ROM WORD* wRom;
- //rom near byte* nbRom; // Near = 2 bytes pointer
- //rom near word* nwRom;
- //rom far byte* fbRom; // Far = 3 bytes pointer
- //rom far word* fwRom;
- } POINTER;
Add Comment
Please, Sign In to add comment