mirror of
https://github.com/AppleWin/AppleWin.git
synced 2025-01-16 09:30:00 +00:00
Cleanup: getVideoScannerAddressTXT() and getVideoScannerAddressHGR() to make it easier to debug
This commit is contained in:
parent
98a4481c7d
commit
8d864c2ab6
@ -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 _________________________________________________________
|
||||||
|
Loading…
x
Reference in New Issue
Block a user