#include <psx.h>
Functions | |
unsigned int | get_cop_register (unsigned char cop_num, unsigned char register_num) |
Get value of the specified (data) register of a specified coprocessor. | |
unsigned int | get_cop_ctrl_register (unsigned char cop_num, unsigned char register_num) |
Get value of the specified control register of a specified coprocessor. | |
unsigned int | get_cop0_register (unsigned char register_num) |
Get value of specified Coprocessor 0 register. | |
void | set_cop_register (unsigned char cop_num, unsigned char register_num, unsigned int value) |
Set value of the specified (data) register of a specified coprocessor. | |
void | set_cop_ctrl_register (unsigned char cop_num, unsigned char register_num, unsigned int value) |
Set value of the specified control register of a specified coprocessor. | |
void | set_cop0_register (unsigned char register_num, unsigned int value) |
Set value of specified Coprocessor 0 register. | |
void | run_cop_instruction (unsigned char cop_num, unsigned int operation) |
Make the specified coprocessor run the specified instruction. | |
unsigned int get_cop0_register | ( | unsigned char | register_num | ) |
Get value of specified Coprocessor 0 register.
register_num | Number of Coprocessor 0 register whose value must be retrieved |
unsigned int get_cop_ctrl_register | ( | unsigned char | cop_num, |
unsigned char | register_num | ||
) |
Get value of the specified control register of a specified coprocessor.
cop_num | Coprocessor number |
register_num | Number of coprocessor register whose value must be retrieved |
unsigned int get_cop_register | ( | unsigned char | cop_num, |
unsigned char | register_num | ||
) |
Get value of the specified (data) register of a specified coprocessor.
cop_num | Coprocessor number |
register_num | Number of coprocessor register whose value must be retrieved |
void run_cop_instruction | ( | unsigned char | cop_num, |
unsigned int | operation | ||
) |
Make the specified coprocessor run the specified instruction.
operation | Operation number for the instruction |
void set_cop0_register | ( | unsigned char | register_num, |
unsigned int | value | ||
) |
Set value of specified Coprocessor 0 register.
register_num | Number of Coprocessor 0 register whose value must be set |
value | New value of specified Coprocessor 0 register |
void set_cop_ctrl_register | ( | unsigned char | cop_num, |
unsigned char | register_num, | ||
unsigned int | value | ||
) |
Set value of the specified control register of a specified coprocessor.
cop_num | Coprocessor number |
register_num | Number of Coprocessor 0 register whose value must be set |
value | New value of specified Coprocessor 0 register |
void set_cop_register | ( | unsigned char | cop_num, |
unsigned char | register_num, | ||
unsigned int | value | ||
) |
Set value of the specified (data) register of a specified coprocessor.
cop_num | Coprocessor number |
register_num | Number of Coprocessor 0 register whose value must be set |
value | New value of specified Coprocessor 0 register |