Cleanup: getVideoScannerAddressTXT() and getVideoScannerAddressHGR() to make it easier to debug

This commit is contained in:
michaelangel007 2022-01-04 23:37:38 -08:00
parent 98a4481c7d
commit 8d864c2ab6

View File

@ -780,16 +780,20 @@ inline void updateVideoScannerAddress()
//=========================================================================== //===========================================================================
INLINE uint16_t getVideoScannerAddressTXT() INLINE uint16_t getVideoScannerAddressTXT()
{ {
return (g_aClockVertOffsetsTXT[g_nVideoClockVert/8] + uint16_t nAddress = (g_aClockVertOffsetsTXT[g_nVideoClockVert/8]
g_pHorzClockOffset [g_nVideoClockVert/64][g_nVideoClockHorz] + (g_nTextPage * 0x400)); + g_pHorzClockOffset [g_nVideoClockVert/64][g_nVideoClockHorz]
+ (g_nTextPage * 0x400));
return nAddress;
} }
//=========================================================================== //===========================================================================
INLINE uint16_t getVideoScannerAddressHGR() INLINE uint16_t getVideoScannerAddressHGR()
{ {
// NB. For both A2 and //e use APPLE_IIE_HORZ_CLOCK_OFFSET - see VideoGetScannerAddress() where only TEXT mode adds $1000 // NB. For both A2 and //e use APPLE_IIE_HORZ_CLOCK_OFFSET - see VideoGetScannerAddress() where only TEXT mode adds $1000
return (g_aClockVertOffsetsHGR[g_nVideoClockVert ] + uint16_t nAddress = (g_aClockVertOffsetsHGR[g_nVideoClockVert ]
APPLE_IIE_HORZ_CLOCK_OFFSET[g_nVideoClockVert/64][g_nVideoClockHorz] + (g_nHiresPage * 0x2000)); + APPLE_IIE_HORZ_CLOCK_OFFSET[g_nVideoClockVert/64][g_nVideoClockHorz]
+ (g_nHiresPage * 0x2000));
return nAddress;
} }
// Non-Inline _________________________________________________________ // Non-Inline _________________________________________________________