cleaup
This commit is contained in:
parent
61497966f3
commit
d168a49d05
1 changed files with 2 additions and 2 deletions
|
@ -36,12 +36,12 @@ 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() {
|
||||||
ad = 0x2000+(320 * (y/8)) + (y & 7)+8 * (short)(x/8);
|
ad = 0x2000+(320 * (y/8)) + (y & 7)+8 * (x/8);
|
||||||
*(short*)(ad) = *(short*)(ad) | 1 << ((7-(x & 7)));
|
*(short*)(ad) = *(short*)(ad) | 1 << ((7-(x & 7)));
|
||||||
}
|
}
|
||||||
|
|
||||||
void setPositionBlack() {
|
void setPositionBlack() {
|
||||||
ad = 0x2000+320 * (y/8) + (y & 7)+8 * (short)(x/8);
|
ad = 0x2000+320 * (y/8) + (y & 7)+8 * (x/8);
|
||||||
*(short*)(ad) = (*(short*)(ad)) & ~(1 << ((7-(x & 7))));
|
*(short*)(ad) = (*(short*)(ad)) & ~(1 << ((7-(x & 7))));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue