chip-8

How does CHIP 8 graphics rendered on screen?

回眸只為那壹抹淺笑 提交于 2019-12-24 02:10:01
问题 Opcode DXYN: Draws a sprite at coordinate (VX, VY) that has a width of 8 pixels and a height of N pixels. Each row of 8 pixels is read as bit-coded (with the most significant bit of each byte displayed on the left) starting from memory location I; I value doesn't change after the execution of this instruction. As described above, VF is set to 1 if any screen pixels are flipped from set to unset when the sprite is drawn, and to 0 if that doesn't happen. Basically I have an array called

CHIP-8 game has an odd number of bytes

岁酱吖の 提交于 2019-12-08 01:44:49
问题 I have been working on a CHIP8 emulator and am using the hex-editor in notepad++ to view the hex values. I happened to notice that some of the games like "Blitz" by David Winter have an odd number of bytes. In CHIP8, each opcode is 2 bytes long, so there should be an even number of bytes, right? 回答1: As you can see in the hex dump, the author has embedded the string BLITZ By David WINTER into the ROM. Maybe this string is shown somewhere in the game, or maybe it's just his little way of