mirror of
https://github.com/tdinucci/6502-emulator.git
synced 2024-09-27 13:55:49 +00:00
28 lines
600 B
C++
28 lines
600 B
C++
#ifndef INC_6502_EMULATOR_TEST_UTILS_H
|
|
#define INC_6502_EMULATOR_TEST_UTILS_H
|
|
|
|
#include "../src/opcode/opcode-handler-directory.h"
|
|
#include "../src/machine/status-register.h"
|
|
|
|
#include <memory>
|
|
#include <vector>
|
|
|
|
using namespace std;
|
|
using namespace emu_6502;
|
|
|
|
const uint16_t CODE_LOAD_ADDR = 0x600;
|
|
|
|
struct RegisterFlagSet {
|
|
bool carry;
|
|
bool zero;
|
|
bool interupt_disable;
|
|
bool decimal;
|
|
bool brk;
|
|
bool overflow;
|
|
bool negative;
|
|
};
|
|
|
|
unique_ptr<Machine> create_machine(vector<uint8_t> code);
|
|
bool are_flags_set(const StatusRegister& reg, const RegisterFlagSet& flags);
|
|
|
|
#endif |