Lib65816/include/Addressing.hpp
2018-03-04 21:04:25 +01:00

56 lines
1.5 KiB
C++

/*
* This file is part of the 65816 Emulator Library.
* Copyright (c) 2018 Francesco Rigoni.
*
* https://github.com/FrancescoRigoni/Lib65816
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, version 3.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef ADDRESSING_HPP
#define ADDRESSING_HPP
enum class AddressingMode {
Interrupt,
Accumulator,
BlockMove,
Implied,
Immediate,
Absolute,
AbsoluteLong,
AbsoluteIndirect,
AbsoluteIndirectLong,
AbsoluteIndexedIndirectWithX, // index with X
AbsoluteIndexedWithX,
AbsoluteLongIndexedWithX,
AbsoluteIndexedWithY,
DirectPage,
DirectPageIndexedWithX,
DirectPageIndexedWithY,
DirectPageIndirect,
DirectPageIndirectLong,
DirectPageIndexedIndirectWithX,
DirectPageIndirectIndexedWithY,
DirectPageIndirectLongIndexedWithY,
StackImplied,
StackRelative,
StackAbsolute,
StackDirectPageIndirect,
StackProgramCounterRelativeLong,
StackRelativeIndirectIndexedWithY,
ProgramCounterRelative,
ProgramCounterRelativeLong
};
#endif // ADDRESSING_HPP