this was just masking i think, must fix

This commit is contained in:
Bjorn Einar Bjarntes 2021-12-19 13:30:42 +01:00
parent f913d0ff65
commit 200e77c6dc

View file

@ -36,6 +36,7 @@ BYTE isPositionWhite() {
// https://archive.org/details/The_Graphics_Book_for_the_Commodore_64/page/n129/ // https://archive.org/details/The_Graphics_Book_for_the_Commodore_64/page/n129/
void setPositionWhite() { void setPositionWhite() {
// TODO this 8 times something divided must be just masking
ad = 0x2000+(320 * (y >> 3)) + (y & 7)+8 * (x>>3); ad = 0x2000+(320 * (y >> 3)) + (y & 7)+8 * (x>>3);
*(short*)(ad) = *(short*)(ad) | 1 << ((7-(x & 7))); *(short*)(ad) = *(short*)(ad) | 1 << ((7-(x & 7)));
} }