diff options
| author | engineer124 <47598039+engineer124@users.noreply.github.com> | 2024-02-02 03:15:53 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-01 11:15:53 -0500 |
| commit | e33d76568c8b71f98b7a6754a8527eb82b152f55 (patch) | |
| tree | fc3539dac623fcb2047da0974b4dbd8dd8f1d48a /src/code/sys_cfb.c | |
| parent | 7c5ab8fcec149bedc6bcd62505cfe4fc91d4a7a1 (diff) | |
Misc Small Retail Files OK (#1687)
* shrink_window, z_lib, z_lights OK
* sys_cfb.c OK
* cleanup
Diffstat (limited to 'src/code/sys_cfb.c')
| -rw-r--r-- | src/code/sys_cfb.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/code/sys_cfb.c b/src/code/sys_cfb.c index 2ec91e25c..041c72659 100644 --- a/src/code/sys_cfb.c +++ b/src/code/sys_cfb.c @@ -13,11 +13,19 @@ void SysCfb_Init(s32 n64dd) { tmpFbEnd = 0x8044BE80; if (n64dd == 1) { PRINTF("RAM 8M mode (N64DD対応)\n"); // "RAM 8M mode (N64DD compatible)" +#if OOT_DEBUG sSysCfbEnd = 0x805FB000; +#else + sSysCfbEnd = 0x80600000; +#endif } else { // "The margin for this version is %dK bytes" PRINTF("このバージョンのマージンは %dK バイトです\n", (0x4BC00 / 1024)); +#if OOT_DEBUG sSysCfbEnd = tmpFbEnd; +#else + sSysCfbEnd = 0x80400000; +#endif } } else if (osMemSize >= 0x400000) { PRINTF("RAM4M mode\n"); @@ -28,6 +36,9 @@ void SysCfb_Init(s32 n64dd) { screenSize = SCREEN_WIDTH * SCREEN_HEIGHT; sSysCfbEnd &= ~0x3F; + + if (1) {} + // "The final address used by the system is %08x" PRINTF("システムが使用する最終アドレスは %08x です\n", sSysCfbEnd); sSysCfbFbPtr[0] = sSysCfbEnd - (screenSize * 4); |
