RehabMan
Moderator
- Joined
- May 2, 2012
- Messages
- 181,058
- Motherboard
- Intel DH67BL
- CPU
- i7-2600K
- Graphics
- HD 3000
- Mac
- Mobile Phone
I Am working on the fields FWBT, SMDA, BMN0, and BDN0, but how would i find the offsets of those?
The offset of any field is the offset of the prior field plus the prior field's size, plus the offset of the EC region.
Remember: Offsets are in bytes. Sizes are in bits.
For example:
Code:
OperationRegion (ERAM, EmbeddedControl, [B]Zero[/B], 0xFF)
Field (ERAM, ByteAcc, Lock, Preserve)
{
...
Offset ([B]0x12[/B]),
FUSL, 8,
FUSH, 8,
FWBT, 64,
The starting offset for the EC region is Zero (most are, but it is not always zero).
The Offset(0x12) makes FUSL at offset 0x12.
So, Zero+0x12+1+1 = 0x14.
FWBT is at offset 0x14 (decimal 20).