mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-25 16:31:42 +00:00
Minor steps to help with diagnostics; all commented out or merely to benefit with breakpoint placement.
This commit is contained in:
parent
cc98534f94
commit
9ca57b80a7
@ -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;
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user