20 lines
380 B
C
20 lines
380 B
C
|
#ifndef OP_H
|
||
|
# define OP_H 1
|
||
|
|
||
|
# include <stdint.h>
|
||
|
|
||
|
# define OP_MAX 256
|
||
|
|
||
|
# define OP_ADDR_IMPL 0
|
||
|
# define OP_ADDR_REL 1 << 0
|
||
|
# define OP_ADDR_IMM 1 << 1
|
||
|
# define OP_ADDR_IND 1 << 2
|
||
|
# define OP_ADDR_ABS 1 << 3
|
||
|
# define OP_ADDR_X 1 << 4
|
||
|
# define OP_ADDR_Y 1 << 5
|
||
|
|
||
|
extern const uint8_t opcode_addr[];
|
||
|
extern const char *opcode_str[];
|
||
|
|
||
|
#endif /* !OP_H */
|