View Single Post
Old February 28th, 2009   #7 (permalink)
runawayprisoner
Mobile Fanatic
 
runawayprisoner's Avatar
 
Join Date: Nov 2006
Location: Santa Cruz, CA
Posts: 6,207
I think he meant 2 instead of 1, Schumi. ;p On some system, opcodes have parameters trailing behind their identifier, thus... length can vary depending on the opcode. The program counter needs to be incremented accordingly or otherwise, you'd start fetching weird stuffs.

Not that I know anything about Space Invaders at all... but I do know that that's almost the case with MIDI and Gameboy. Amen.

On another side note, Chip-8 opcodes have a fixed length of 2 bytes regardless... making it almost "too" easy to emulate... (why so conveniently 2 bytes? lol)
__________________
cChip interpreter WIP - current status: Release Candidate
LRx Filter RC - current performance rating: 9/10
runawayprisoner is offline   Reply With Quote