// 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 __CPU_GLOBALS_H__17#define __CPU_GLOBALS_H__1819#undef R20#define R(reg) m_st.r[reg]2122#undef CPU23#define CPU (*this)2425#undef CPSR26#undef SPSR27#undef FLAG_Z28#undef FLAG_N29#undef FLAG_C30#undef FLAG_V31#undef FLAG_T32#define CPSR (m_st.cpsr.dw)33#define SPSR (m_st.spsr.dw)34#define FLAG_Z (m_st.icpsr.f_zero)35#define FLAG_N (m_st.icpsr.f_sign)36#define FLAG_C (m_st.icpsr.f_carry)37#define FLAG_V (m_st.icpsr.f_overflow)38#define FLAG_T (m_st.icpsr.thumb)3940#endif414243