Chip8 opcode F020?

Monado_III

Well-Known Member
OP
Member
Joined
Feb 8, 2015
Messages
722
Trophies
0
Location
/dev/null
XP
1,433
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,350
Trophies
3
XP
27,317
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,433
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
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • JuanMena @ JuanMena:
    Kissing random dudes choking in celery? Really? Need to study for that?
  • K3N1 @ K3N1:
    Yes it requires a degree
  • K3N1 @ K3N1:
    I could also yank out the rest of my teeth but theirs professionals for that
  • x65943 @ x65943:
    If your throat closes, putting oxygen in your mouth will not solve anything - as you will be introducing oxygen prior to the area of obstruction
  • JuanMena @ JuanMena:
    Just kiss me Kyle.
  • x65943 @ x65943:
    You either need to be intubated to bypass obstruction or create a stoma inferior to the the area of obstruction to survive
  • x65943 @ x65943:
    "Just kiss me Kyle." And I thought all the godreborn gay stuff was a smear campaign
  • JuanMena @ JuanMena:
    If I die, tell my momma I won't be carrying Baby Jesus this christmas :sad::cry:
  • K3N1 @ K3N1:
    Smear campaigns are in The political section now?
  • JuanMena @ JuanMena:
    Chary! Chary! Chary, Chary, Chary!
  • Sonic Angel Knight @ Sonic Angel Knight:
    Pork Provolone :P
  • Psionic Roshambo @ Psionic Roshambo:
    Sounds yummy
  • K3N1 @ K3N1:
    Sweet found my Wii u PSU right after I ordered a new one :tpi:
  • JuanMena @ JuanMena:
    It was waiting for you to order another one.
    Seems like, your PSU was waiting for a partner.
  • JuanMena @ JuanMena:
    Keep them both
    separated or you'll have more PSUs each year.
  • K3N1 @ K3N1:
    Well one you insert one PSU into the other one you get power
  • JuanMena @ JuanMena:
    It literally turns it on.
  • K3N1 @ K3N1:
    Yeah power supplies are filthy perverts
  • K3N1 @ K3N1:
    @Psionic Roshambo has a new friend
    +1
  • JuanMena @ JuanMena:
    It's Kyle, the guy that went to school to be a Certified man Kisser.
  • Psionic Roshambo @ Psionic Roshambo:
    Cartmans hand has taco flavored kisses
  • A @ abraarukuk:
    hi guys
  • Iron_Masuku @ Iron_Masuku:
    Hello
    Skelletonike @ Skelletonike: hmm