Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
a2f4a33c8This file is pinned to the selected release. Download the original to open it in your design tool.
#pragma once
#include "GateBoyLib/Regs.h"
//-----------------------------------------------------------------------------
struct SpriteFetchCounter {
void reset_to_poweron();
void reset_to_bootrom();
void reset_to_cart();
/*#p29.TOXE*/ DFF17 TOXE_SFETCH_S0p_evn; // ABxDxFxH Beginning of line, reset on A. During line, ticks and resets on odd.
/*#p29.TULY*/ DFF17 TULY_SFETCH_S1p_evn; // ABxDxFxH Beginning of line, reset on A. During line, ticks and resets on odd.
/*#p29.TESE*/ DFF17 TESE_SFETCH_S2p_evn; // ABxDxFxH Beginning of line, reset on A. During line, ticks and resets on odd.
};
//-----------------------------------------------------------------------------
struct SpriteFetchControl {
void reset_to_poweron();
void reset_to_bootrom();
void reset_to_cart();
/*_p29.WUTY*/ Gate WUTY_SFETCH_DONE_TRIGp_odd; // new used
/*_p29.TEXY*/ Gate TEXY_SFETCHINGp_evn; // new used
/*_p27.TAKA*/ NandLatch TAKA_SFETCH_RUNNINGp_evn; // ABCDEFGH Set on odd, cleared on even
/*_p27.SOBU*/ DFF17 SOBU_SFETCH_REQp_evn; // xBxDxFxH
/*_p27.SUDA*/ DFF17 SUDA_SFETCH_REQp_odd; // AxBxExGx
/*#p29.TYFO*/ DFF17 TYFO_SFETCH_S0p_D1_odd; // AxCxExGx
/*#p29.TOBU*/ DFF17 TOBU_SFETCH_S1p_D2_evn; // xBxDxFxH
/*#p29.VONU*/ DFF17 VONU_SFETCH_S1p_D4_evn; // xBxDxFxH
/*#p29.SEBA*/ DFF17 SEBA_SFETCH_S1p_D5_odd; // AxCxExGx
};
//-----------------------------------------------------------------------------