// Copyright (C) 2013 PPSSPP Project.12// This program is free software: you can redistribute it and/or modify3// it under the terms of the GNU General Public License as published by4// the Free Software Foundation, version 2.0 or later versions.56// This program is distributed in the hope that it will be useful,7// but WITHOUT ANY WARRANTY; without even the implied warranty of8// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the9// GNU General Public License 2.0 for more details.1011// A copy of the GPL 2.0 should have been included with the program.12// If not, see http://www.gnu.org/licenses/1314// Official SVN repository and contact information can be found at15// http://code.google.com/p/dolphin-emu/1617#pragma once1819#include "Common/CommonTypes.h"2021// Broken out of MemMap.h to avoid a bad include dependency.2223namespace Memory {2425struct Opcode {26Opcode() {27}2829explicit Opcode(u32 v) : encoding(v) {30}3132u32 operator & (const u32 &arg) const {33return encoding & arg;34}3536u32 operator >> (const u32 &arg) const {37return encoding >> arg;38}3940bool operator == (const u32 &arg) const {41return encoding == arg;42}4344bool operator != (const u32 &arg) const {45return encoding != arg;46}4748u32 encoding;49};5051}525354