Go to the source code of this file.
Functions | |
| uint32_t | vm_getbits (command_t *command, int32_t start, int32_t count) |
| static uint16_t | get_GPRM (registers_t *registers, uint8_t reg) |
| static void | set_GPRM (registers_t *registers, uint8_t reg, uint16_t value) |
| static uint16_t | eval_reg (command_t *command, uint8_t reg) |
| static uint16_t | eval_reg_or_data (command_t *command, int32_t imm, int32_t start) |
| static uint16_t | eval_reg_or_data_2 (command_t *command, int32_t imm, int32_t start) |
| static int32_t | eval_compare (uint8_t operation, uint16_t data1, uint16_t data2) |
| static int32_t | eval_if_version_1 (command_t *command) |
| static int32_t | eval_if_version_2 (command_t *command) |
| static int32_t | eval_if_version_3 (command_t *command) |
| static int32_t | eval_if_version_4 (command_t *command) |
| static int32_t | eval_special_instruction (command_t *command, int32_t cond) |
| static int32_t | eval_link_subins (command_t *command, int32_t cond, link_t *return_values) |
| static int32_t | eval_link_instruction (command_t *command, int32_t cond, link_t *return_values) |
| static int32_t | eval_jump_instruction (command_t *command, int32_t cond, link_t *return_values) |
| static int32_t | eval_system_set (command_t *command, int32_t cond, link_t *return_values) |
| static void | eval_set_op (command_t *command, int32_t op, int32_t reg, int32_t reg2, int32_t data) |
| static void | eval_set_version_1 (command_t *command, int32_t cond) |
| static void | eval_set_version_2 (command_t *command, int32_t cond) |
| static int32_t | eval_command (uint8_t *bytes, registers_t *registers, link_t *return_values) |
| int32_t | vmEval_CMD (vm_cmd_t commands[], int32_t num_commands, registers_t *registers, link_t *return_values) |
| static char * | linkcmd2str (link_cmd_t cmd) |
| void | vm_print_link (link_t value) |
| void | vm_print_registers (registers_t *registers) |
Definition at line 36 of file decoder.c.
Referenced by eval_command(), eval_if_version_1(), eval_if_version_2(), eval_if_version_3(), eval_if_version_4(), eval_jump_instruction(), eval_link_instruction(), eval_link_subins(), eval_reg_or_data(), eval_reg_or_data_2(), eval_set_version_1(), eval_set_version_2(), eval_special_instruction(), eval_system_set(), print_if_version_1(), print_if_version_2(), print_if_version_3(), print_if_version_4(), print_if_version_5(), print_jump_instruction(), print_link_instruction(), print_linksub_instruction(), print_reg_or_data(), print_reg_or_data_2(), print_reg_or_data_3(), print_set_version_1(), print_set_version_2(), print_set_version_3(), print_special_instruction(), print_system_set(), and vm_print_mnemonic().
| static uint16_t get_GPRM | ( | registers_t * | registers, | |
| uint8_t | reg | |||
| ) | [static] |
Definition at line 62 of file decoder.c.
Referenced by eval_reg(), eval_reg_or_data_2(), eval_set_op(), and vm_print_registers().
| static void set_GPRM | ( | registers_t * | registers, | |
| uint8_t | reg, | |||
| uint16_t | value | |||
| ) | [static] |
| static uint16_t eval_reg | ( | command_t * | command, | |
| uint8_t | reg | |||
| ) | [static] |
Definition at line 100 of file decoder.c.
Referenced by eval_if_version_1(), eval_if_version_2(), eval_if_version_3(), eval_if_version_4(), and eval_reg_or_data().
Definition at line 114 of file decoder.c.
Referenced by eval_if_version_1(), eval_if_version_3(), eval_if_version_4(), eval_set_version_1(), eval_set_version_2(), and eval_system_set().
| static int32_t eval_compare | ( | uint8_t | operation, | |
| uint16_t | data1, | |||
| uint16_t | data2 | |||
| ) | [static] |
Definition at line 137 of file decoder.c.
Referenced by eval_if_version_1(), eval_if_version_2(), eval_if_version_3(), and eval_if_version_4().
| static int32_t eval_link_subins | ( | command_t * | command, | |
| int32_t | cond, | |||
| link_t * | return_values | |||
| ) | [static] |
Definition at line 236 of file decoder.c.
Referenced by eval_command(), and eval_link_instruction().
| static void eval_set_op | ( | command_t * | command, | |
| int32_t | op, | |||
| int32_t | reg, | |||
| int32_t | reg2, | |||
| int32_t | data | |||
| ) | [static] |
Definition at line 408 of file decoder.c.
Referenced by eval_set_version_1(), and eval_set_version_2().
| static int32_t eval_command | ( | uint8_t * | bytes, | |
| registers_t * | registers, | |||
| link_t * | return_values | |||
| ) | [static] |
| int32_t vmEval_CMD | ( | vm_cmd_t | commands[], | |
| int32_t | num_commands, | |||
| registers_t * | registers, | |||
| link_t * | return_values | |||
| ) |
Definition at line 581 of file decoder.c.
Referenced by play_Cell_post(), play_PGC(), play_PGC_PG(), play_PGC_post(), and vm_exec_cmd().
| static char* linkcmd2str | ( | link_cmd_t | cmd | ) | [static] |
| void vm_print_link | ( | link_t | value | ) |
| void vm_print_registers | ( | registers_t * | registers | ) |
1.5.5