diff --git a/linux-ramdump-parser-v2/register.py b/linux-ramdump-parser-v2/register.py index 3c52dd2aace19ea1a6d75797a218896676e3818b..03e47fcc2a48d1fbc545a3ff2b8d4d9b01d52f00 100644 --- a/linux-ramdump-parser-v2/register.py +++ b/linux-ramdump-parser-v2/register.py @@ -39,6 +39,14 @@ class Register(object): >>> abc.other = 0x3 >>> hex(abc.value) '0x31' + >>> abc.add_field("just_a_bit", (4, 4)) + >>> abc.just_a_bit + 1 + >>> abc.just_a_bit = 0 + >>> abc.just_a_bit + 0 + >>> hex(abc.value) + '0x21' >>> abc.value = 0 >>> abc.value 0