(self, address)
return number, offset
Get the field and affset for an address in a FIELD buffer.
Get the field and affset for an address in a FIELD buffer.
Get the field and affset for an address in a FIELD buffer .
def _get_field_offset(self, address):
        """Get the field and affset for an address in a FIELD buffer."""
        # find the file we're in
        start = address - self._field_mem_start
        number = 1 + start // self._field_mem_offset
        offset = start % self._field_mem_offset
        if (number not in self.fields) or (start < 0):
            raise ValueError('Address %x is not in FIELD memory' % address)
        return number, offset
def _get_field_offset ( self , address ) : # find the file we're in start = address - self . _field_mem_start number = 1 + start // self . _field_mem_offset offset = start % self . _field_mem_offset if ( number not in self . fields ) or ( start < 0 ) : raise ValueError ( 'Address %x is not in FIELD memory' % address ) return number , offset