6502-emulator/src/utils.h

29 lines
790 B
C
Raw Normal View History

#ifndef INC_6502_EMULATOR_UTILS_H
#define INC_6502_EMULATOR_UTILS_H
#include "machine/machine.h"
#include <string>
#include <sstream>
2019-04-23 23:40:31 +00:00
#include <iostream>
using namespace std;
namespace emu_6502 {
string uint_to_hex(uint64_t value);
2019-04-20 22:58:03 +00:00
void set_zero_and_neg_flags(StatusRegister& ps, uint8_t value);
2019-04-20 10:22:40 +00:00
uint8_t get_zpg_address(Machine& machine);
uint8_t get_zpg_x_address(Machine& machine);
uint8_t get_zpg_y_address(Machine& machine);
2019-04-21 23:19:16 +00:00
2019-04-20 10:22:40 +00:00
uint16_t get_abs_address(Machine& machine);
uint16_t get_abs_x_address(Machine& machine);
uint16_t get_abs_y_address(Machine& machine);
2019-04-21 23:19:16 +00:00
uint16_t get_ind_address(Machine& machine);
2019-04-20 10:22:40 +00:00
uint16_t get_ind_x_address(Machine& machine);
uint16_t get_ind_y_address(Machine& machine);
}
#endif // INC_6502_EMULATOR_UTILS_H