Пример #1
0
def coproc_poke(coproc, opcode_1, CRn, CRm, opcode_2, value):
    reg_entry = _coprocwrite_index(coproc, opcode_1, CRn, CRm, opcode_2)
    if reg_entry is None:
        raise ValueError('coprocessor register not present/supported')
    mem.checkvalue(4, value)
    _metalcpu.coproc_write(reg_entry[1], value)
Пример #2
0
 def poke(self, value):
     if not self.writable:
         raise TypeError('not a writable register')
     mem.checkvalue(self.bytes, value)
     self._write(value)
Пример #3
0
def coproc_poke(coproc, opcode_1, CRn, CRm, opcode_2, value):
    reg_entry = _coprocwrite_index(coproc, opcode_1, CRn, CRm, opcode_2)
    if reg_entry is None:
        raise ValueError('coprocessor register not present/supported')
    mem.checkvalue(4, value)
    _metalcpu.coproc_write(reg_entry[1], value)
Пример #4
0
 def poke(self, value):
     if not self.writable:
         raise TypeError('not a writable register')
     mem.checkvalue(self.bytes, value)
     self._write(value)