mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-14 10:48:36 +12:00
- Implemented ARM9Interpreter & ARM9DisAsm.
- Implemented MemoryBlockLE & DynamicMemoryBlockLE. - Implemented CPUDecoder.
This commit is contained in:
parent
0b35be32a4
commit
6b22e7d90a
31 changed files with 475 additions and 177 deletions
32
rpcs3/Emu/ARM9/ARM9Decoder.h
Normal file
32
rpcs3/Emu/ARM9/ARM9Decoder.h
Normal file
|
@ -0,0 +1,32 @@
|
|||
#pragma once
|
||||
#include "Emu/CPU/CPUDecoder.h"
|
||||
#include "ARM9Opcodes.h"
|
||||
|
||||
|
||||
class ARM9Decoder : public CPUDecoder
|
||||
{
|
||||
ARM9Opcodes& m_op;
|
||||
|
||||
public:
|
||||
ARM9Decoder(ARM9Opcodes& op) : m_op(op)
|
||||
{
|
||||
}
|
||||
|
||||
virtual void DecodeMemory(const u64 address)
|
||||
{
|
||||
const u16 code0 = Memory.Read16(address);
|
||||
const u16 code1 = Memory.Read16(address + 2);
|
||||
const u16 opcode = code0;
|
||||
|
||||
switch(opcode)
|
||||
{
|
||||
case 0:
|
||||
m_op.NULL_OP();
|
||||
break;
|
||||
|
||||
default:
|
||||
m_op.UNK(opcode, code0, code1);
|
||||
break;
|
||||
}
|
||||
}
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue