Skip to content

Commit

Permalink
CRTC Capture writes Video-Out Control registers.
Browse files Browse the repository at this point in the history
  • Loading branch information
captainys committed Sep 17, 2024
1 parent d893853 commit 996386d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/towns/townsvmif.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ void FMTownsCommon::ProcessVMToHostCommand(unsigned int vmCmd,unsigned int param
switch(vmCmd)
{
case TOWNS_VMIF_CMD_CAPTURE_CRTC:
std::cout << "\n";
std::cout << "0x" << cpputil::Ubtox(param[0]) << ",0x" << cpputil::Ubtox(param[1]) << "," << std::endl;
{
const int nReg=sizeof(crtc.state.crtcReg)/sizeof(crtc.state.crtcReg[0]);
Expand All @@ -40,6 +41,11 @@ void FMTownsCommon::ProcessVMToHostCommand(unsigned int vmCmd,unsigned int param
std::cout << std::endl;
}
}
for(int i=0; i<3; ++i)
{
std::cout << "0x" << cpputil::Ubtox(crtc.state.sifter[i]) << ",";
}
std::cout << "\n";
}
break;
case TOWNS_VMIF_CMD_PAUSE:
Expand Down

0 comments on commit 996386d

Please sign in to comment.