2017-06-04 20:38:34 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
namespace EightBit {
|
|
|
|
class Intel8080;
|
|
|
|
|
|
|
|
class Disassembler {
|
|
|
|
public:
|
|
|
|
Disassembler();
|
|
|
|
|
|
|
|
static std::string state(Intel8080& cpu);
|
|
|
|
static std::string disassemble(Intel8080& cpu);
|
|
|
|
|
2017-06-16 00:58:12 +00:00
|
|
|
static std::string flag(uint8_t value, int flag, const std::string& represents);
|
|
|
|
static std::string flags(uint8_t value);
|
2017-06-04 20:38:34 +00:00
|
|
|
static std::string hex(uint8_t value);
|
|
|
|
static std::string hex(uint16_t value);
|
|
|
|
static std::string binary(uint8_t value);
|
|
|
|
|
|
|
|
static std::string invalid(uint8_t value);
|
|
|
|
};
|
|
|
|
}
|