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

Take alternative guess as to meaning of 'use' bits.

This commit is contained in:
Thomas Harte 2021-09-23 18:42:12 -04:00
parent 137d1c61bd
commit 9a7a54f22f

View File

@ -132,7 +132,6 @@ bool Blitter::advance() {
} else {
// Copy mode.
printf("!!! Copy %08x\n", pointer_[3]);
ram_[pointer_[3] & ram_mask_] = 0x8000;
// Quick hack: do the entire action atomically. Isn't life fabulous?
for(int y = 0; y < height_; y++) {
@ -140,16 +139,16 @@ bool Blitter::advance() {
if(channel_enables_[0]) {
a_ = (a_ << 16) | ram_[pointer_[0] & ram_mask_];
pointer_[0] += direction_;
}
} else { a_ = 0xffffffff; }
if(channel_enables_[1]) {
b_ = (b_ << 16) | ram_[pointer_[1] & ram_mask_];
pointer_[1] += direction_;
}
} else { b_ = 0xffffffff; }
uint16_t c;
if(channel_enables_[2]) {
c = ram_[pointer_[2] & ram_mask_];
} else {
c = 0;
c = 0xffff;
pointer_[2] += direction_;
}