think my hack worked...

This commit is contained in:
Bjorn Einar Bjarntes 2021-12-19 19:47:16 +01:00
parent 5a45ff1c36
commit 151b969c7c

View file

@ -6,6 +6,7 @@ short x;
BYTE y; BYTE y;
BYTE direction; BYTE direction;
short ad; short ad;
short tmpY;
void setHiRes() { void setHiRes() {
*(BYTE*)0xd011 = *(BYTE*)0xd011 | 0xb0 ; // Graphics on *(BYTE*)0xd011 = *(BYTE*)0xd011 | 0xb0 ; // Graphics on
@ -30,7 +31,8 @@ void setAndClearHiRes(){
} }
void calcAdress(){ void calcAdress(){
ad = 0x2000+((y & 0xf8) << 3) +((y & 0xf8) << 4) +((y & 0xf8) << 4) + (y & 7)+ (x&(0xfff8)); tmpY = (y & 0xf8) << 3;
ad = 0x2000+tmpY + (tmpY << 2) + (y & 7)+ (x&(0xfff8));
} }
BYTE isPositionWhite() { BYTE isPositionWhite() {