MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / high_reg

Method high_reg

rust/src/low_level_il/operation.rs:502–521  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

500 }
501
502 pub fn high_reg(&self) -> LowLevelILRegister<A::Register> {
503 let raw_id = self.op.operands[1] as u32;
504
505 if raw_id >= 0x8000_0000 {
506 LowLevelILRegister::Temp(raw_id & 0x7fff_ffff)
507 } else {
508 self.function
509 .arch()
510 .register_from_id(RegisterId(raw_id))
511 .map(LowLevelILRegister::ArchReg)
512 .unwrap_or_else(|| {
513 log::error!(
514 "got garbage register from LLIL_REG @ 0x{:x}",
515 self.op.address
516 );
517
518 LowLevelILRegister::Temp(0)
519 })
520 }
521 }
522}
523
524impl<A, M, F> Debug for Operation<'_, A, M, F, RegSplit>

Callers 1

fmtMethod · 0.80

Calls 3

mapMethod · 0.80
register_from_idMethod · 0.45
archMethod · 0.45

Tested by

no test coverage detected