maat.CPU class

The CPU is the interface used to access or modify the CPU registers emulated by the engine. Register are dynamically available as properties of the CPU object. A register's current value can be accessed using, for example, cpu.rax, which always returns an Value instance. Registers can also be modified, and accept either concrete values: cpu.rax = 1 or Value values: cpu.rax = Var(64, "myvar")+1

❱   Operators

Value __getattr__(reg_name)

Get current value of a register

__setattr__(reg_name, val)

Modify the current value of a register

val Value to assign to register. Can be either Value or int