Hi.
I'm writing a Chip-8 emulator and I'm about to make a start on the DRW Vx, Vy instruction.
I understand that the sprites are XORed onto the screen and that if a sprite gets erased the VF flag is set. What I don't get is why the sprites are XORed onto the screen. How is this useful for a programmer writing Chip-8 games?
Cheers.
I'm writing a Chip-8 emulator and I'm about to make a start on the DRW Vx, Vy instruction.
I understand that the sprites are XORed onto the screen and that if a sprite gets erased the VF flag is set. What I don't get is why the sprites are XORed onto the screen. How is this useful for a programmer writing Chip-8 games?
Cheers.