InstructionEncoder
class InstructionEncoder
Encodes instructions for a given CPU, translating them into machine code.
DEFINITION
class InstructionEncoder;
constructor InstructionEncoder
DEFINITION
| InstructionEncoder | ( | const CPU * cpu | ); |
| PARAMETER | DESCRIPTION |
|---|---|
cpu |
method encodeconst
DEFINITION
| Body encode | ( | const Token & name, | |
| const std::vector< std::shared_ptr< Node > > & arguments, | |||
| const std::shared_ptr< Environment > & environment, | |||
| const SizeRange & offset, | |||
| bool & uses_pc | ) const; |
| PARAMETER | DESCRIPTION |
|---|---|
name |
|
arguments |
|
environment |
|
offset |
|
uses_pc |
| RETURNS | DESCRIPTION |
|---|---|
Body |