65oo2/lib/mnemonic.h

85 lines
1.5 KiB
C
Raw Normal View History

2024-04-12 13:35:39 +00:00
#ifndef LIB_65oo2_MNEMONIC_H
# define LIB_65oo2_MNEMONIC_H 1
typedef enum {
MNEMONIC_INVALID,
/** add with carry */
MNEMONIC_ADC,
/** and (with accumulator)*/
MNEMONIC_AND,
/** arithmetic shift left */
MNEMONIC_ASL,
/** branch on carry clear */
MNEMONIC_BCC,
/** branch on carry set */
MNEMONIC_BCS,
/** branch on equal (zero set) */
MNEMONIC_BEQ,
/** bit test */
MNEMONIC_BIT,
/** branch on minus (negative set) */
MNEMONIC_BMI,
/** branch on not equal (zero clear) */
MNEMONIC_BNE,
/** branch on plus (negative clear) */
MNEMONIC_BPL,
/** break / interrupt */
MNEMONIC_BRK,
MNEMONIC_BVC,
MNEMONIC_BVS,
MNEMONIC_CLC,
MNEMONIC_CLD,
MNEMONIC_CLI,
MNEMONIC_CLV,
MNEMONIC_CMP,
MNEMONIC_CPX,
MNEMONIC_CPY,
MNEMONIC_DEC,
MNEMONIC_DEX,
MNEMONIC_DEY,
MNEMONIC_EOR,
MNEMONIC_INC,
MNEMONIC_INX,
MNEMONIC_INY,
/** jump */
MNEMONIC_JMP,
/** jump subroutine */
MNEMONIC_JSR,
MNEMONIC_LDA,
MNEMONIC_LDX,
MNEMONIC_LDY,
MNEMONIC_LSR,
MNEMONIC_NOP,
MNEMONIC_ORA,
MNEMONIC_PHA,
MNEMONIC_PHP,
MNEMONIC_PLA,
MNEMONIC_PLP,
MNEMONIC_ROL,
MNEMONIC_ROR,
MNEMONIC_RTI,
MNEMONIC_RTS,
MNEMONIC_SBC,
MNEMONIC_SEC,
MNEMONIC_SED,
MNEMONIC_SEI,
MNEMONIC_STA,
/** store X */
MNEMONIC_STX,
/** store Y */
MNEMONIC_STY,
MNEMONIC_TAX,
MNEMONIC_TAY,
MNEMONIC_TSX,
MNEMONIC_TXA,
MNEMONIC_TXS,
MNEMONIC_TYA,
MNEMONIC_MAX
} Mnemonic;
/** Return specified mnemonic string */
const char *mnemonic_to_string(Mnemonic mnemonic);
#endif /* !LIB_65oo2_MNEMONIC_H */