mirror of
https://github.com/snesrev/zelda3.git
synced 2025-12-19 18:05:55 -05:00
Move snes_regs.h
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#include "zelda_rtl.h"
|
||||
#include "variables.h"
|
||||
#include "variables_attract.h"
|
||||
#include "snes_regs.h"
|
||||
#include "snes/snes_regs.h"
|
||||
#include "load_gfx.h"
|
||||
#include "dungeon.h"
|
||||
#include "sprite.h"
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
#include "zelda_rtl.h"
|
||||
|
||||
#include "snes/snes_regs.h"
|
||||
#include "variables.h"
|
||||
#include "dungeon.h"
|
||||
#include "snes_regs.h"
|
||||
#include "nmi.h"
|
||||
#include "hud.h"
|
||||
#include "load_gfx.h"
|
||||
|
||||
1
ending.c
1
ending.c
@@ -1,4 +1,5 @@
|
||||
#include "zelda_rtl.h"
|
||||
#include "snes/snes_regs.h"
|
||||
#include "variables.h"
|
||||
#include "load_gfx.h"
|
||||
#include "dungeon.h"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include "zelda_rtl.h"
|
||||
#include "variables.h"
|
||||
#include "snes_regs.h"
|
||||
#include "snes/snes_regs.h"
|
||||
#include "overworld.h"
|
||||
#include "load_gfx.h"
|
||||
#include "player.h"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#include "messaging.h"
|
||||
#include "zelda_rtl.h"
|
||||
#include "variables.h"
|
||||
#include "snes_regs.h"
|
||||
#include "snes/snes_regs.h"
|
||||
#include "dungeon.h"
|
||||
#include "hud.h"
|
||||
#include "load_gfx.h"
|
||||
|
||||
1
misc.c
1
misc.c
@@ -15,6 +15,7 @@
|
||||
#include "messaging.h"
|
||||
#include "ending.h"
|
||||
#include "attract.h"
|
||||
#include "snes/snes_regs.h"
|
||||
#include "tables/generated_predefined_tiles.h"
|
||||
#include "tables/generated_sound_banks.h"
|
||||
|
||||
|
||||
7
nmi.c
7
nmi.c
@@ -1,11 +1,12 @@
|
||||
#include "nmi.h"
|
||||
#include "zelda_rtl.h"
|
||||
#include "variables.h"
|
||||
#include "snes_regs.h"
|
||||
#include "messaging.h"
|
||||
#include "snes/snes_regs.h"
|
||||
#include "snes/ppu.h"
|
||||
#include "tables/generated_bg_tilemaps.h"
|
||||
#include "tables/generated_link_graphics.h"
|
||||
#include "messaging.h"
|
||||
#include "snes/ppu.h"
|
||||
|
||||
static const uint8 kNmiVramAddrs[] = {
|
||||
0, 0, 4, 8, 12, 8, 12, 0, 4, 0, 8, 4, 12, 4, 12, 0,
|
||||
8, 16, 20, 24, 28, 24, 28, 16, 20, 16, 24, 20, 28, 20, 28, 16,
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
#pragma once
|
||||
#include "zelda_rtl.h"
|
||||
#include "variables.h"
|
||||
#include "snes_regs.h"
|
||||
#include "types.h"
|
||||
|
||||
void Overlord_StalfosFactory(int k);
|
||||
void Overlord_SetX(int k, uint16 v);
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
#include "misc.h"
|
||||
#include "messaging.h"
|
||||
#include "player_oam.h"
|
||||
#include "snes/snes_regs.h"
|
||||
#include "tables/generated_map32_to_map16.h"
|
||||
#include "tables/generated_map16_to_map8.h"
|
||||
#include "tables/generated_overworld_tables.h"
|
||||
|
||||
@@ -1,10 +1,6 @@
|
||||
#pragma once
|
||||
#include "zelda_rtl.h"
|
||||
#include "variables.h"
|
||||
#include "snes_regs.h"
|
||||
|
||||
|
||||
|
||||
|
||||
const uint8 *GetMap8toTileAttr();
|
||||
const uint16 *GetMap16toMap8Table();
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
#include "player_oam.h"
|
||||
#include "zelda_rtl.h"
|
||||
#include "variables.h"
|
||||
#include "snes_regs.h"
|
||||
#include "snes/snes_regs.h"
|
||||
#include "player.h"
|
||||
#include "misc.h"
|
||||
|
||||
static const int8 kPlayerOam_StairsOffsY[] = {
|
||||
0, -2, -3, 0, -2, -3, 0, 0, 0, 0, 0, 0, 0, -2, -3, 0,
|
||||
-2, -3, 0, 0, 0, 0, 0, 0,
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#include "variables.h"
|
||||
#include "load_gfx.h"
|
||||
#include "select_file.h"
|
||||
#include "snes_regs.h"
|
||||
#include "snes/snes_regs.h"
|
||||
#include "variables_attract.h"
|
||||
#include "overworld.h"
|
||||
#include "messaging.h"
|
||||
|
||||
@@ -7,7 +7,8 @@
|
||||
#include <stddef.h>
|
||||
#include "dma.h"
|
||||
#include "snes.h"
|
||||
#include "../snes_regs.h"
|
||||
#include "snes_regs.h"
|
||||
|
||||
static const int bAdrOffsets[8][4] = {
|
||||
{0, 0, 0, 0},
|
||||
{0, 1, 0, 1},
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
#include "cart.h"
|
||||
#include "input.h"
|
||||
#include "../tracing.h"
|
||||
#include "../snes_regs.h"
|
||||
#include "snes_regs.h"
|
||||
|
||||
static const double apuCyclesPerMaster = (32040 * 32) / (1364 * 262 * 60.0);
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
#include "sprite.h"
|
||||
#include "zelda_rtl.h"
|
||||
#include "variables.h"
|
||||
#include "snes_regs.h"
|
||||
#include "snes/snes_regs.h"
|
||||
#include "dungeon.h"
|
||||
#include "overworld.h"
|
||||
#include "ancilla.h"
|
||||
|
||||
@@ -224,8 +224,8 @@
|
||||
<ClInclude Include="snes\ppu.h" />
|
||||
<ClInclude Include="snes\saveload.h" />
|
||||
<ClInclude Include="snes\snes.h" />
|
||||
<ClInclude Include="snes\snes_regs.h" />
|
||||
<ClInclude Include="snes\spc.h" />
|
||||
<ClInclude Include="snes_regs.h" />
|
||||
<ClInclude Include="spc_player.h" />
|
||||
<ClInclude Include="sprite.h" />
|
||||
<ClInclude Include="sprite_main.h" />
|
||||
|
||||
@@ -162,9 +162,6 @@
|
||||
<ClInclude Include="dungeon.h">
|
||||
<Filter>Zelda</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="snes_regs.h">
|
||||
<Filter>Zelda</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="nmi.h">
|
||||
<Filter>Zelda</Filter>
|
||||
</ClInclude>
|
||||
@@ -237,6 +234,9 @@
|
||||
<ClInclude Include="config.h">
|
||||
<Filter>Zelda</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="snes\snes_regs.h">
|
||||
<Filter>Snes</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="packages.config" />
|
||||
|
||||
@@ -7,7 +7,8 @@
|
||||
#include "nmi.h"
|
||||
#include "poly.h"
|
||||
#include "attract.h"
|
||||
|
||||
#include "spc_player.h"
|
||||
#include "snes/snes_regs.h"
|
||||
#include "snes/snes.h"
|
||||
#include "snes/cpu.h"
|
||||
#include "snes/cart.h"
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
#include "poly.h"
|
||||
#include "attract.h"
|
||||
#include "snes/ppu.h"
|
||||
#include "snes/snes_regs.h"
|
||||
#include "spc_player.h"
|
||||
|
||||
ZeldaEnv g_zenv;
|
||||
// These point to the rewritten instance of the emu.
|
||||
|
||||
14
zelda_rtl.h
14
zelda_rtl.h
@@ -9,18 +9,16 @@
|
||||
#include <assert.h>
|
||||
|
||||
#include "types.h"
|
||||
#include "snes_regs.h"
|
||||
#include "snes/dma.h"
|
||||
#include "snes/ppu.h"
|
||||
#include "spc_player.h"
|
||||
|
||||
struct Snes;
|
||||
|
||||
typedef struct ZeldaEnv {
|
||||
uint8 *ram;
|
||||
uint8 *sram;
|
||||
uint16 *vram;
|
||||
Ppu *ppu;
|
||||
SpcPlayer *player;
|
||||
Dma *dma;
|
||||
struct Ppu *ppu;
|
||||
struct SpcPlayer *player;
|
||||
struct Dma *dma;
|
||||
} ZeldaEnv;
|
||||
extern ZeldaEnv g_zenv;
|
||||
|
||||
@@ -196,6 +194,6 @@ void ClearOamBuffer();
|
||||
void Startup_InitializeMemory();
|
||||
void LoadSongBank(const uint8 *p);
|
||||
void ZeldaWriteSram();
|
||||
void ZeldaReadSram(Snes *snes);
|
||||
void ZeldaReadSram(struct Snes *snes);
|
||||
|
||||
#endif // ZELDA_RTL_H
|
||||
|
||||
Reference in New Issue
Block a user