I found out that hardware sprites get disabled with: vdp(9)=vdp(9)or2
Now I need the command to enable them again. I remember something like vdp(9)=vdp(9)and [something]
Login or register to post comments
I found out that hardware sprites get disabled with: vdp(9)=vdp(9)or2
Now I need the command to enable them again. I remember something like vdp(9)=vdp(9)and [something]
ghe... I found out myself
253
just out of curiosity. why this long way? is vdp(9)=vdp(9)and253 not an integer? or is the value x on computer a and y on computer b?
2 is 00000010 binary, 253 is 11111101.
A OR B sets the bits which are 1 in either, A AND B clears the bits which are 0 in either.
As you can see in the binary notation, 253 is the complement of 2. Ways to calculate the complement of an 8-bit number is 255 - A = B, or A XOR 255 = B.
He asked if vdp(9) can have different values on different machines
Meits: you use the long way to only toggle that single bit in the register and leave the rest for what it is.
Oh, in that case, maybe different on some machines, maybe not. Or the user might have changed it. Also I don’t really know exactly what each bit does, and in which screen modes they should be set. The uncertainties are exactly why I think it’s best to just change the bit you want to change instead of setting all 8. Better safe than sorry
.
Don't you have an account yet? Become an MSX-friend and register an account!
