3 GB_get_registers
Lior Halphon edited this page 2024-12-01 01:09:32 +02:00

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