g++ $(CXXFLAGS) -o $@ $^ $(LDFLAGS)
clean:
- rm -f *.o tests/test_gbrom tests/test_core
+ rm -f *.o wendi/*.o wendi/wendi tests/test_gbrom tests/test_core
.PHONY: clean tests all
OTHER
};
+ enum InstructionSubType
+ {
+ JP,
+ JR,
+ }
+
enum Register { A=0,B,C,D,E,H,L,AF,BC,DE,HL,SP,PC };
enum OperandType
bool is_block_end(const Instruction &ins)
{
if (ins.type == Instruction::UNCONDITIONAL_JUMP ||
- ins.type == Instruction::RET)
+ ins.type == Instruction::RET ||
+ ins.type == Instruction::RESET)
return true;
return false;
{
if (ins.str.substr(0,2)=="JR")
return ins.op2.val;
- else return ins.op1.val;
+ else if (ins.op1.type == Instruction::INM16)
+ return ins.op1.val;
}
else // RESET
{