IORegister IODeviceTree:/memory - convert DATA Entry
Colin Swelin <[email protected]> Mon, 10 Jan 2011 14:59:44 -0500
| Newsgroups | gmane.comp.macosx.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi, I'm trying to parse out each DIMM size of the machines available ram, I know this can be found in the IORegistry at: IORegister IODeviceTree:/memory Key: reg Now my problem is I don't know how to read this data correctly, like how do I know what format the DATA is in? All i know is this: 00000000000000800000000000000080, should be broken up into 0000000000000080 and 0000000000000080, for each DIMM. and 0000000000000080 = 2gig 0100000000000000 = 4gig but how can I correctly convert (0100000000000000 or 0000000000000080) into a readable number? Thanks, Coin