view python/ppci/target/arm/token.py @ 342:86b02c98a717 devel

Moved target directory
author Windel Bouwman
date Sat, 01 Mar 2014 15:40:31 +0100
parents
children b4882ff0ed06
line wrap: on
line source


from ..token import Token, u32, bit_range


class ArmToken(Token):
    def __init__(self):
        super().__init__(32)

    cond = bit_range(28, 32)

    def encode(self):
        return u32(self.bit_value)