Skip to content

GB_get_registers

Lior Halphon edited this page Nov 30, 2024 · 3 revisions

Definition

GB_registers_t *GB_get_registers(GB_gameboy_t *gb);

In gb.h

Description

Returns a pointer to the register set of the emulator instance's SM83 CPU. The returned pointer directly points to the current emulation state of the CPU, and can be freely read to obtain the current register values, and modified to alter the execution state.

Thread Safety

GB_get_registers is thread-safe and can be called from any thread and context.

See Also

Clone this wiki locally