Skip to content

GB_reset

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

Definition

void GB_reset(GB_gameboy_t *gb);

In gb.h

Description

This function emulates a power cycle in an emulator instance. All internal RAM types (but not external RAM found inside the cartridge) will be randomized or zeroed out, MMIO registers will be set to their initial values, and the instance will be set to execute the boot ROM again.

Thread Safety

GB_reset must not be called if the instance is being run in any thread, including the current one (via a callback).

See Also

Clone this wiki locally