Epok Engine

PSYQO SDK

psyqo::Kernel::Internal::getCop0Status

Function · 1 overload

Function

Returns cop0 status as part of PSX kernel ownership, interrupts and low-level services.

Belongs to
psyqo::Kernel::Internal
Header
kernel.hh
Overloads
1

Declaration

static
Declaration
static inline uint32_t getCop0Status()

Returns cop0 status as part of PSX kernel ownership, interrupts and low-level services.

This overload takes no parameters.

Returns: uint32_t. Check the value before continuing when it represents success, availability or a resource handle.

Example

C++ example
#include "psyqo/kernel.hh"

auto result = psyqo::Kernel::Internal::getCop0Status();

Why use it

It provides direct, allocation-conscious access to PSX kernel ownership, interrupts and low-level services. No exception-based error path is implied by the signature.

Trade-offs and warnings

Call it only in the lifecycle phase described by the module. Validate indices, capacities and object state before use.

Declared in https://github.com/pcsx-redux/nugget/blob/6186b131aacc5853a9161fb076ed34ffe504552d/psyqo/kernel.hh:65

Related members