Struct p8n_types::TestArch

source ·
pub struct TestArch;
Expand description

ISA used for testing. Single digits are interpreted as 32 bit constants, lower case letters as 32 bit registers or 1 bit flags depending on the context. First argument is the result. Upper case letters are opcodes.

Instructions

‘A’ : := + ‘X’ : := * ‘U’ : := - ‘M’ : := ‘C’ : := <= ? 1 : 0 # is a 1 bit flag ‘E’ : := == ? 1 : 0 # is a 1 bit flag ‘B’ : branch to if flag is 1, fall-thru otherwise ‘J’ : jump to ‘G’ : call to ‘F’: call to random uuid ‘H’ : call to stub x ‘R’: return ‘S’ : *x := y ‘L’ : x := *y

Trait Implementations

This type can describes the CPU state. For x86 this would be the mode, for ARM whenever Thumb is active. Read more
Given a memory image and a configuration the functions extracts a set of entry points. Read more
Start to disassemble a single Opcode inside a given region at a given address.
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.