~ppsspp/ppsspp/ppsspp_1.3.0

« back to all changes in this revision

Viewing changes to ext/armips/Archs/ARM/Pool.h

  • Committer: Sérgio Benjamim
  • Date: 2017-01-02 00:12:05 UTC
  • Revision ID: sergio_br2@yahoo.com.br-20170102001205-cxbta9za203nmjwm
1.3.0 source (from ppsspp_1.3.0-r160.p5.l1762.a165.t83~56~ubuntu16.04.1.tar.xz).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#pragma once
 
2
#include "Commands/CAssemblerCommand.h"
 
3
#include "../Architecture.h"
 
4
 
 
5
class ArmStateCommand: public CAssemblerCommand
 
6
{
 
7
public:
 
8
        ArmStateCommand(bool state);
 
9
        virtual bool Validate();
 
10
        virtual void Encode() const { };
 
11
        virtual void writeTempData(TempData& tempData) const { };
 
12
        virtual void writeSymData(SymbolData& symData) const;
 
13
private:
 
14
        u64 RamPos;
 
15
        bool armstate;
 
16
};
 
17
 
 
18
class ArmOpcodeCommand;
 
19
 
 
20
struct ArmPoolEntry
 
21
{
 
22
        ArmOpcodeCommand* command;
 
23
        u32 value;
 
24
};
 
25
 
 
26
class ArmPoolCommand: public CAssemblerCommand
 
27
{
 
28
public:
 
29
        ArmPoolCommand();
 
30
        virtual bool Validate();
 
31
        virtual void Encode() const;
 
32
        virtual void writeTempData(TempData& tempData) const;
 
33
        virtual void writeSymData(SymbolData& symData) const;
 
34
private:
 
35
        u64 position;
 
36
        std::vector<u32> values;
 
37
};