mirror of
https://github.com/AppleWin/AppleWin.git
synced 2024-12-29 08:30:04 +00:00
Replace NTSC_VideoGetByte() with NTSC_VideoGetScannerAddress()
This commit is contained in:
parent
3eec694262
commit
898a82cded
@ -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 ];
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
|
@ -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 );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user