Skip to content

Support EWRAM wait state configuration through GBA register 4000800h #1276

Description

@HorstBaerbel

The GBA (Regular + SP, NOT GBA Micro or DS) support EWRAM wait state control through "undocumented" register 4000800h (see GBATek). Support would be nice. Atm mGBA reports:

[GAME ERROR] GBA I/O: Write to unused I/O register: 800
[GAME ERROR] GBA I/O: Write to unused I/O register: 802

Code:

#define REG_WAITEWRAM (*(volatile uint32_t *)(REG_BASE + 0x0800))
// set undocumented register for EWRAM waitstates
// sets EWRAM wait states to 2/2/4 vs. 3/3/6 (default 0x0D000020)
REG_WAITEWRAM = 0x0E000020;

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions