mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-26 08:49:37 +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
|
// update hmove
|
||||||
if (!(_horizontalTimer&3) && _hMoveFlags) {
|
if (!(_horizontalTimer&3) && _hMoveFlags) {
|
||||||
for(int c = 0; c < 5; c++) {
|
for(int c = 0; c < 5; c++) {
|
||||||
if ((_hMoveCounter^8^(_objectMotion[c] >> 4)) == 0xf) _hMoveFlags &= ~(1 << c);
|
if ((_hMoveCounter^8^(_objectMotion[c] >> 4)) == 0xf)
|
||||||
if (_hMoveFlags&(1 << c)) _objectCounter[c] = (_objectCounter[c]+1)%160;
|
_hMoveFlags &= ~(1 << c);
|
||||||
|
if (_hMoveFlags&(1 << c))
|
||||||
|
_objectCounter[c] = (_objectCounter[c]+1)%160;
|
||||||
}
|
}
|
||||||
|
|
||||||
_hMoveCounter = (_hMoveCounter-1)&0xf;
|
_hMoveCounter = (_hMoveCounter-1)&0xf;
|
||||||
|
@ -466,10 +466,14 @@ template <class T> class Processor {
|
|||||||
read_op(_operation, _lastOperationPC.full);
|
read_op(_operation, _lastOperationPC.full);
|
||||||
|
|
||||||
// static int last_cycles_left_to_run = 0;
|
// static int last_cycles_left_to_run = 0;
|
||||||
|
// static bool printed_map[256] = {false};
|
||||||
|
// if(!printed_map[_operation]) {
|
||||||
|
// printed_map[_operation] = true;
|
||||||
// if(last_cycles_left_to_run > _cycles_left_to_run)
|
// if(last_cycles_left_to_run > _cycles_left_to_run)
|
||||||
// printf("%02x %d\n", _operation, last_cycles_left_to_run - _cycles_left_to_run);
|
// printf("%02x %d\n", _operation, last_cycles_left_to_run - _cycles_left_to_run);
|
||||||
// else
|
// else
|
||||||
// printf("%02x\n", _operation);
|
// printf("%02x\n", _operation);
|
||||||
|
// }
|
||||||
// last_cycles_left_to_run = _cycles_left_to_run;
|
// last_cycles_left_to_run = _cycles_left_to_run;
|
||||||
} break;
|
} break;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user