refraction
PCSX2 Coder
well then you have some problems somewhere, im sure UFO ran on mine without modulating, back on my text graphics chip8 emu every game ran fine except field without modulating the co-ordinates.
but apart from that problem your drawsprite looks fine.
Edit: UFO works fine here without it, heres the code for your drawsprite as i have it.
if that doesnt work, try modulating Y by 33 and X by 64. quite odd i know.. but for some reason i had that in the code
but apart from that problem your drawsprite looks fine.
Edit: UFO works fine here without it, heres the code for your drawsprite as i have it.
Code:
void DrawSprite()
{
int j;
int i;
int plotX, plotY;
char data;
// If no collision, default VF to 0.
V[0xF] = 0;
plotX = V[opcode2];
plotY = V[opcode3];
for(j = 0; j < opcode4; j++)
{
data = romBuffer[Index + j];
for (i = 0; i < 8; i++)
{
if ((data & (0x80 >> i)) != 0)
{
if (screenData[(((plotY + j) * 64) + ((plotX + i))] == 1)
V[0xF] = 1;
screenData[(((plotY + j) * 64) + ((plotX + i))] ^= 1;
}
}
}
}
if that doesnt work, try modulating Y by 33 and X by 64. quite odd i know.. but for some reason i had that in the code
Last edited: