mirror of
https://github.com/TomHarte/CLK.git
synced 2025-08-06 16:25:35 +00:00
Fix sprite H start bit order.
This commit is contained in:
@@ -960,12 +960,12 @@ void Chipset::Bitplanes::set_control(uint16_t control) {
|
|||||||
|
|
||||||
void Chipset::Sprite::set_start_position(uint16_t value) {
|
void Chipset::Sprite::set_start_position(uint16_t value) {
|
||||||
v_start_ = (v_start_ & 0xff00) | (value >> 8);
|
v_start_ = (v_start_ & 0xff00) | (value >> 8);
|
||||||
h_start_ = (h_start_ & 0xff00) | ((value & 0xff));
|
h_start_ = uint16_t((h_start_ & 0x0001) | ((value & 0xff) << 1));
|
||||||
active = false;
|
active = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Chipset::Sprite::set_stop_and_control(uint16_t value) {
|
void Chipset::Sprite::set_stop_and_control(uint16_t value) {
|
||||||
h_start_ = uint16_t((h_start_ & 0x00ff) | ((value & 0x01) << 8));
|
h_start_ = uint16_t((h_start_ & 0x01fe) | (value & 0x01));
|
||||||
v_stop_ = uint16_t((value >> 8) | ((value & 0x02) << 7));
|
v_stop_ = uint16_t((value >> 8) | ((value & 0x02) << 7));
|
||||||
v_start_ = uint16_t((v_start_ & 0x00ff) | ((value & 0x04) << 6));
|
v_start_ = uint16_t((v_start_ & 0x00ff) | ((value & 0x04) << 6));
|
||||||
attached = value & 0x80;
|
attached = value & 0x80;
|
||||||
|
Reference in New Issue
Block a user