Quantcast
Channel: EmuTalk.net
Viewing all articles
Browse latest Browse all 2625

[CHIP-8] Unknown opcode..

$
0
0
Hi !

First of all, excuse me if my english is not perfect, I'm french and even if I do my best, I will certainly do a lot of mistakes...

I'm currently doing a Chip 8 emulator, it's currently working on some rom, but for some of them, I found a few unknown opcodes... I wrote a disassembly to see the content of the game, but obviously, I found theses unknown opcodes again !

These are a some examples :
- BRIX game : opcode 0xE000 (location 780 (0x030C) in the memory)
- Rocket2 : opcode 0xFF00 (location 606 (0x025E))
- AIRPLANE : opcode 0x80F8 (location 852 (0x0354))

Do you have any idea of what's going on ?

Let's see my algorithm, maybe you will see something wrong...

Code:

opcodes_list <- list of existing opcodes

For each opcode in program Do
    For each op in opcodes_list Do
        If ((opcode & op.mask) == op.id)
            op.emulate ()
        EndIf
    EndFor
EndFor

Have a nice day !

Viewing all articles
Browse latest Browse all 2625

Trending Articles