mirror of https://github.com/stella-emu/stella.git
Fixed reading of VBLANK register in debugger.
This commit is contained in:
parent
c99cb33cda
commit
30e1996d5b
|
@ -151,14 +151,13 @@ uInt8 RiotDebug::inpt(int x)
|
||||||
bool RiotDebug::vblank(int bit)
|
bool RiotDebug::vblank(int bit)
|
||||||
{
|
{
|
||||||
if(bit == 6) // latches
|
if(bit == 6) // latches
|
||||||
return 0;//FIXME mySystem.tia().myVBLANK & 0x40;
|
return myConsole.tia().myInput0.vblankLatched();
|
||||||
else if(bit == 7) // dump to ground
|
else if(bit == 7) // dump to ground
|
||||||
return 0;//FIXME mySystem.tia().myDumpEnabled;
|
return myConsole.tia().myPaddleReaders[0].vblankDumped();
|
||||||
else
|
else
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
uInt8 RiotDebug::tim1T(int newVal)
|
uInt8 RiotDebug::tim1T(int newVal)
|
||||||
{
|
{
|
||||||
|
|
|
@ -30,6 +30,7 @@ class LatchedInput
|
||||||
void reset();
|
void reset();
|
||||||
|
|
||||||
void vblank(uInt8 value);
|
void vblank(uInt8 value);
|
||||||
|
bool vblankLatched() const { return myModeLatched; }
|
||||||
|
|
||||||
uInt8 inpt(bool pinState);
|
uInt8 inpt(bool pinState);
|
||||||
|
|
||||||
|
|
|
@ -32,6 +32,7 @@ class PaddleReader
|
||||||
void reset(double timestamp);
|
void reset(double timestamp);
|
||||||
|
|
||||||
void vblank(uInt8 value, double timestamp);
|
void vblank(uInt8 value, double timestamp);
|
||||||
|
bool vblankDumped() const { return myIsDumped; }
|
||||||
|
|
||||||
uInt8 inpt(double timestamp);
|
uInt8 inpt(double timestamp);
|
||||||
|
|
||||||
|
|
|
@ -221,8 +221,8 @@ class TIA : public Device
|
||||||
bool isRendering() const { return myFrameManager.isRendering(); }
|
bool isRendering() const { return myFrameManager.isRendering(); }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Answers the current position of the virtual 'electron beam' used to
|
Answers the current position of the virtual 'electron beam' used
|
||||||
draw the TIA image.
|
when drawing the TIA image in debugger mode.
|
||||||
|
|
||||||
@return The x/y coordinates of the scanline electron beam, and whether
|
@return The x/y coordinates of the scanline electron beam, and whether
|
||||||
it is in the visible/viewable area of the screen
|
it is in the visible/viewable area of the screen
|
||||||
|
|
Loading…
Reference in New Issue