Chip8 opcode F020?

Monado_III

Well-Known Member
OP
Member
Joined
Feb 8, 2015
Messages
722
Trophies
0
Location
/dev/null
XP
1,443
Country
Canada
So I made a crappy Chip8 emulator but I'm having some issue, it seems to be working well enough, but on certain games, (pong, tic-tac-toe) it gives
Code:
Wrong opcode: F020
Wrong opcode: F020
which would be easy enough to solve if I could figure out what opcode that is, but for some reason I can't find what opcode that would be. Is my emulator at fault or the games that I'm using?

edit: I can post the source of my emu if that's nessecary
 
Last edited by Monado_III,
  • Like
Reactions: Deleted User

FAST6191

Techromancer
Editorial Team
Joined
Nov 21, 2005
Messages
36,798
Trophies
3
XP
28,373
Country
United Kingdom
http://devernay.free.fr/hacks/chip8/C8TECH10.HTM and the docs in http://www.pong-story.com/chip8/ does seem to have anything and http://mattmik.com/files/chip8/mastering/chip8.html covers some undocumented instructions and none have anything for FX20.
http://progopedia.ru/implementation/asm-chip-8/ mentions Fx20 under the super chip Fx30 instruction. However I do not want to try what little Russian I have against the wording there (something about simlar and sprites).

To that end it is more likely the program at fault, however I would still try to debug it in the emulator to make sure you have not messed something up somewhere (you have not missed a branch or anything and tried to decode a payload or something).
 

Monado_III

Well-Known Member
OP
Member
Joined
Feb 8, 2015
Messages
722
Trophies
0
Location
/dev/null
XP
1,443
Country
Canada
Looking at the program flow, would I be correct in assuming it's being caused by trying to execute before 0x200?
Code:
Executing 0000 at 0200 , I:00 SP:00
Executing 6A02 at 0202 , I:00 SP:00
Executing 6B0C at 0204 , I:00 SP:00
Executing 6C3F at 0206 , I:00 SP:00
Executing 6D0C at 0208 , I:00 SP:00
Executing A2EA at 020A , I:2EA SP:00
Executing DAB6 at 020C , I:2EA SP:00
Executing DCD6 at 020E , I:2EA SP:00
Executing 6E00 at 0210 , I:2EA SP:00
Executing 22D4 at 02D4 , I:2EA SP:01
Executing A2F2 at 02D6 , I:2F2 SP:01
Executing FE33 at 02D8 , I:2F2 SP:01
Executing F265 at 02DA , I:2F2 SP:01
Executing F129 at 02DC , I:00 SP:01
Executing 6414 at 02DE , I:00 SP:01
Executing 6500 at 02E0 , I:00 SP:01
Executing D455 at 02E2 , I:00 SP:01
Executing 7415 at 02E4 , I:00 SP:01
Executing F229 at 02E6 , I:00 SP:01
Executing D455 at 02E8 , I:00 SP:01
Executing 00EE at 0002 , I:00 SP:00
Executing 9090 at 0004 , I:00 SP:00
Wrong opcode: F020
Executing F020 at 0004 , I:00 SP:00
Wrong opcode: F020
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Psionic Roshambo @ Psionic Roshambo: I see your mop and raise you George's mop lol