mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2024-12-22 09:30:32 +00:00
Now runs the first pass of the translated Z80 tests as LR35902 style instructions
Signed-off-by: Adrian.Conlon <adrian.conlon@gmail.com>
This commit is contained in:
parent
5526892e2f
commit
e7001b2425
@ -20,11 +20,6 @@ void Fuse::RegisterState::readExternal(std::ifstream& file) {
|
||||
}
|
||||
|
||||
void Fuse::RegisterState::readInternal(std::ifstream& file) {
|
||||
file >> i;
|
||||
file >> r;
|
||||
file >> iff1;
|
||||
file >> iff2;
|
||||
file >> im;
|
||||
file >> halted;
|
||||
|
||||
file >> std::dec;
|
||||
|
@ -10,12 +10,9 @@ namespace Fuse {
|
||||
class RegisterState {
|
||||
public:
|
||||
enum {
|
||||
AF, BC, DE, HL, AF_, BC_, DE_, HL_, IX, IY, SP, PC, MEMPTR, NUMBER_OF_REGISTERS
|
||||
AF, BC, DE, HL, SP, PC, NUMBER_OF_REGISTERS
|
||||
};
|
||||
std::vector<EightBit::register16_t> registers;
|
||||
int i, r;
|
||||
bool iff1, iff2;
|
||||
int im;
|
||||
bool halted;
|
||||
int tstates;
|
||||
|
||||
|
@ -3,11 +3,8 @@
|
||||
#include "FuseTestRunner.h"
|
||||
|
||||
Fuse::TestSuite::TestSuite(std::string path) {
|
||||
m_tests.read(path + ".in.z80");
|
||||
m_tests.write(path + ".in");
|
||||
|
||||
m_results.read(path + ".expected.z80");
|
||||
m_results.write(path + ".expected");
|
||||
m_tests.read(path + ".in");
|
||||
m_results.read(path + ".expected");
|
||||
}
|
||||
|
||||
void Fuse::TestSuite::run() {
|
||||
|
Loading…
Reference in New Issue
Block a user