2018-04-27 12:07:42 +00:00
|
|
|
#ifndef _ASSEMBLER_H_
|
|
|
|
#define _ASSEMBLER_H_
|
|
|
|
|
|
|
|
#include "instruction.h"
|
|
|
|
#include "rk65c02.h"
|
|
|
|
|
|
|
|
struct assembler {
|
|
|
|
bus_t *bus;
|
|
|
|
uint16_t pc;
|
|
|
|
};
|
|
|
|
|
|
|
|
typedef struct assembler assembler_t;
|
|
|
|
|
2018-06-25 12:05:47 +00:00
|
|
|
bool assemble_single_buf_implied(uint8_t **, uint8_t *, char *);
|
|
|
|
bool assemble_single_buf(uint8_t **, uint8_t *, char *, addressing_t, uint8_t, uint8_t);
|
2018-04-27 12:07:42 +00:00
|
|
|
|
|
|
|
assembler_t assemble_init(bus_t *, uint16_t);
|
2018-06-25 12:05:47 +00:00
|
|
|
bool assemble_single(assembler_t *, char *, addressing_t, uint8_t, uint8_t);
|
|
|
|
bool assemble_single_implied(assembler_t *, char *);
|
2018-04-27 12:07:42 +00:00
|
|
|
|
|
|
|
#endif /* _ASSEMBLER_H_ */
|
|
|
|
|