1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-07-05 10:28:58 +00:00

Minor steps to help with diagnostics; all commented out or merely to benefit with breakpoint placement.

This commit is contained in:
Thomas Harte 2015-08-13 08:43:10 +01:00
parent cc98534f94
commit 9ca57b80a7
2 changed files with 12 additions and 6 deletions

View File

@ -169,8 +169,10 @@ void Machine::output_pixels(int count)
// update hmove
if (!(_horizontalTimer&3) && _hMoveFlags) {
for(int c = 0; c < 5; c++) {
if ((_hMoveCounter^8^(_objectMotion[c] >> 4)) == 0xf) _hMoveFlags &= ~(1 << c);
if (_hMoveFlags&(1 << c)) _objectCounter[c] = (_objectCounter[c]+1)%160;
if ((_hMoveCounter^8^(_objectMotion[c] >> 4)) == 0xf)
_hMoveFlags &= ~(1 << c);
if (_hMoveFlags&(1 << c))
_objectCounter[c] = (_objectCounter[c]+1)%160;
}
_hMoveCounter = (_hMoveCounter-1)&0xf;

View File

@ -466,10 +466,14 @@ template <class T> class Processor {
read_op(_operation, _lastOperationPC.full);
// static int last_cycles_left_to_run = 0;
// if(last_cycles_left_to_run > _cycles_left_to_run)
// printf("%02x %d\n", _operation, last_cycles_left_to_run - _cycles_left_to_run);
// else
// printf("%02x\n", _operation);
// static bool printed_map[256] = {false};
// if(!printed_map[_operation]) {
// printed_map[_operation] = true;
// if(last_cycles_left_to_run > _cycles_left_to_run)
// printf("%02x %d\n", _operation, last_cycles_left_to_run - _cycles_left_to_run);
// else
// printf("%02x\n", _operation);
// }
// last_cycles_left_to_run = _cycles_left_to_run;
} break;