RehabMan / OS-X-ACPI-Battery-Driver

Implements an Advanced Configuration and Power Interface (ACPI) based battery manager kernel extension (kext/driver) for non-Apple laptops running OS X.
Other
178 stars 58 forks source link

Problem with splitting bytes #31

Closed dgtutu closed 6 years ago

dgtutu commented 6 years ago

Hello,Rehabman!

This is a 16-bit byte: MCUR, 16, Store (^^PCI0.LPCB.EC0.ECRD (RefOf (^^PCI0.LPCB.EC0.MCUR)), Local5)

and I use the B1B2: MCU0, 8,MCU1, 8, Store (^^PCI0.LPCB.EC0.ECRD (RefOf (B1B2(^^PCI0.LPCB.EC0.MCU0,^^PCI0.LPCB.EC0.MCU1))), Local5)

He will report an error: 37462, 6126, syntax error, unexpected PARSEOP_CLOSE_PAREN, expecting PARSEOP_EXP_INDEX_LEFT

I think the problem is“refof” I don't know what should I do,can you help me? Thank you!

dgtutu commented 6 years ago

Oh,I have solved the problem what I need to do is: MCU0, 8,MCU1, 8, Store (B1B2(^^PCI0.LPCB.EC0.MCU0,^^PCI0.LPCB.EC0.MCU1), Local0) Store (^^PCI0.LPCB.EC0.ECRD (RefOf (Local0)), Local5)