Posted: Wed 13 Feb, 2008 7:53 pm
Oh, that wouldn't be very nice
This is my code for LDIR:
edit: oh poo I found the problem, it wasn't hanging at all it was just going too slow (omg) (yes I know I'm stupid)
This is my code for LDIR:
Code: Select all
case 0xB0: //LDIR
Write(DE, Read(HL));
DE++;
HL++;
BC--;
flags[Flags.flags.PV] = BC != 0;
flags[Flags.flags.N] = false;
flags[Flags.flags.H] = false;
if (BC != 0)
PC -= 2;
break;