Replace NTSC_VideoGetByte() with NTSC_VideoGetScannerAddress()

This commit is contained in:
michaelangel007 2015-01-03 18:28:47 -08:00
parent 3eec694262
commit 898a82cded
2 changed files with 12 additions and 12 deletions

View File

@ -1529,10 +1529,11 @@ _mono:
}
//===========================================================================
uint8_t NTSC_VideoGetByte (unsigned long cycles6502)
uint16_t NTSC_VideoGetScannerAddress ( unsigned long cycles6502 )
{
uint8_t *pMain = MemGetMainPtr( g_aHorzClockMemAddress[ g_nVideoClockHorz ] );
return pMain[0];
(void)cycles6502; // TODO: Do we need to offset based on the clock cycles?
// uint8_t h = (g_nVideoClockHorz + cycles6502) % VIDEO_SCANNER_MAX_HORZ
return g_aHorzClockMemAddress[ g_nVideoClockHorz ];
}
//===========================================================================

View File

@ -6,13 +6,12 @@
extern uint16_t g_nVideoClockHorz;
// Prototypes (Public) ________________________________________________
extern void NTSC_SetVideoTextMode( int cols );
extern void NTSC_SetVideoMode( int flags );
extern void NTSC_SetVideoStyle();
extern uint8_t NTSC_VideoGetByte(unsigned long);
extern void NTSC_VideoInit( uint8_t *pFramebuffer );
extern void NTSC_VideoInitAppleType ();
extern bool NTSC_VideoIsVbl();
extern void NTSC_VideoUpdateCycles( long cycles );
extern void NTSC_SetVideoMode( int bVideoModeFlags );
extern void NTSC_SetVideoStyle();
extern void NTSC_SetVideoTextMode( int cols );
extern uint16_t NTSC_VideoGetScannerAddress( unsigned long cycles6502 );
extern void NTSC_VideoInit( uint8_t *pFramebuffer );
extern void NTSC_VideoInitAppleType ();
extern bool NTSC_VideoIsVbl();
extern void NTSC_VideoUpdateCycles( long cycles6502 );