Path: blob/master/libmeteor/include/ameteor/disassembler/argregister.hpp
2 views
// Meteor - A Nintendo Gameboy Advance emulator1// Copyright (C) 2009-2011 Philippe Daouadi2//3// This program is free software: you can redistribute it and/or modify4// it under the terms of the GNU General Public License as published by5// the Free Software Foundation, either version 3 of the License, or6// (at your option) any later version.7//8// This program is distributed in the hope that it will be useful,9// but WITHOUT ANY WARRANTY; without even the implied warranty of10// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the11// GNU General Public License for more details.12//13// You should have received a copy of the GNU General Public License14// along with this program. If not, see <http://www.gnu.org/licenses/>.1516#ifndef __ARG_REGISTER_H__17#define __ARG_REGISTER_H__1819#include "argument.hpp"2021#include <stdint.h>2223namespace AMeteor24{25namespace Disassembler26{27class ArgRegister : public Argument28{29public :30ArgRegister (uint8_t reg, bool writeback = false,31bool special = false, bool memory = false) :32m_reg(reg),33m_writeback(writeback),34m_special(special),35m_memory(memory)36{ }3738Argument* Clone () const;3940std::string GetString () const;41uint8_t GetRegister () const42{43return m_reg;44}4546private :47uint8_t m_reg;48bool m_writeback;49bool m_special;50bool m_memory;51};52}53}5455#endif565758