|
libElysianVMU 1.6.0
Full-featured, accurate, cross-platform library emulating the Dreamcast's Visual Memory Unit
|
Go to the source code of this file.
Data Structures | |
| struct | EvmuInstructionFormat |
| struct | EvmuInstruction |
| struct | EvmuOperands |
| struct | EvmuDecodedInstruction |
Typedefs | |
| typedef uint32_t | EvmuIsaFlags |
| typedef uint32_t | EvmuIsaArgFormat |
Enumerations | |
| enum | EVMU_ISA_ARG_TYPE |
| enum | EVMU_ISA_ARG |
| enum | EVMU_INSTRUCTION_BYTE |
Functions | |
| const EvmuInstructionFormat * | EvmuIsa_format (EvmuWord firstByte) |
| EVMU_RESULT | EvmuIsa_fetch (EvmuInstruction *pEncoded, const void *pBuffer, size_t *pBytes) |
| EVMU_RESULT | EvmuIsa_decode (const EvmuInstruction *pEncoded, EvmuDecodedInstruction *pDecoded) |
Instruction set, opcode, and operand info.
This file provides the API for everything relating to the instruction set architecture of the Sanyo LC86K:
Definition in file evmu_isa.h.
| #define EVMU_ISA_ARG_FORMAT_PACK | ( | ... | ) |
Packs the given argument types into an EvmuIsaArgFormat.
Definition at line 132 of file evmu_isa.h.
| #define EVMU_ISA_ARG_FORMAT_UNPACK | ( | argFormat, | |
| field ) |
Unpacks the given field from the EvmuIsaArgFormat provided as argFormat.
Definition at line 136 of file evmu_isa.h.
| #define EVMU_ISA_ARGC | ( | argFmt | ) |
Returns the number of arguments encoded within an EvmuIsaArgFormat.
Definition at line 140 of file evmu_isa.h.
| #define EVMU_ISA_PSW_AC_MASK 0x2 |
Auxiliary carry mask.
Definition at line 121 of file evmu_isa.h.
| #define EVMU_ISA_PSW_AC_POS 1 |
Auxiliary carry bit.
Definition at line 120 of file evmu_isa.h.
| #define EVMU_ISA_PSW_CY_MASK 0x4 |
Carry mask.
Definition at line 119 of file evmu_isa.h.
| #define EVMU_ISA_PSW_CY_POS 2 |
Carry bit.
Definition at line 118 of file evmu_isa.h.
| #define EVMU_ISA_PSW_NONE 0x0 |
No PSW flags affected
Definition at line 124 of file evmu_isa.h.
| #define EVMU_ISA_PSW_OV_MASK 0x1 |
Overflow mask.
Definition at line 123 of file evmu_isa.h.
| #define EVMU_ISA_PSW_OV_POS 0 |
Overflow bit.
Definition at line 122 of file evmu_isa.h.
| #define EVMU_ISA_PSW_SYSTEM_MASK 0x8 |
System mask.
Definition at line 117 of file evmu_isa.h.
| #define EVMU_ISA_PSW_SYSTEM_POS 3 |
System bit.
Definition at line 116 of file evmu_isa.h.
| typedef uint32_t EvmuIsaArgFormat |
Type for holding encoded instruction argument types in EvmuInstructionFormat::args.
Definition at line 152 of file evmu_isa.h.
| typedef uint32_t EvmuIsaFlags |
Flags type for EvmuInstructionFormat::flags.
Definition at line 149 of file evmu_isa.h.
Enumeration containing each byte within an encoded EvmuInstruction.
Definition at line 198 of file evmu_isa.h.
| enum EVMU_ISA_ARG |
Enumeration for each argument position in an EvmuIaArgFormat.
| Enumerator | |
|---|---|
| EVMU_ISA_ARG1 | First argument. |
| EVMU_ISA_ARG2 | Second argument. |
| EVMU_ISA_ARG3 | Third argument. |
| EVMU_ISA_ARG_COUNT | Size of argument pack. |
Definition at line 171 of file evmu_isa.h.
| enum EVMU_ISA_ARG_TYPE |
Enumeration with every type of instruction argument.
Definition at line 157 of file evmu_isa.h.
| EVMU_RESULT EvmuIsa_decode | ( | const EvmuInstruction * | pEncoded, |
| EvmuDecodedInstruction * | pDecoded ) |
Decodes an instruction into an EvmuDecodedInstruction.
| EVMU_RESULT EvmuIsa_fetch | ( | EvmuInstruction * | pEncoded, |
| const void * | pBuffer, | ||
| size_t * | pBytes ) |
Fetches an encoded instruction from a buffer.
| const EvmuInstructionFormat * EvmuIsa_format | ( | EvmuWord | firstByte | ) |
Fetches information on an instruction from the internal database.