Duckstation/src/core/gte.h
2021-04-30 02:53:03 +10:00

26 lines
511 B
C++

#pragma once
#include "gte_types.h"
class StateWrapper;
namespace GTE {
void Initialize();
void Reset();
bool DoState(StateWrapper& sw);
void UpdateAspectRatio();
// control registers are offset by +32
u32 ReadRegister(u32 index);
void WriteRegister(u32 index, u32 value);
// use with care, direct register access
u32* GetRegisterPtr(u32 index);
void ExecuteInstruction(u32 inst_bits);
using InstructionImpl = void (*)(Instruction);
InstructionImpl GetInstructionImpl(u32 inst_bits);
} // namespace GTE