Make it possible to disable emitting nop after halt.

This commit is contained in:
Anthony J. Bentley
2013-05-19 17:56:41 -06:00
parent 34d40a67c9
commit 6ccd386587
4 changed files with 33 additions and 4 deletions

View File

@@ -153,8 +153,13 @@ z80_ex : T_Z80_EX T_MODE_HL comma T_MODE_SP_IND
{ out_AbsByte(0xE3); }
;
z80_halt : T_Z80_HALT
{ out_AbsByte(0x76); out_AbsByte(0x00); }
z80_halt: T_Z80_HALT
{
out_AbsByte(0x76);
if (haltnop) {
out_AbsByte(0x00);
}
}
;
z80_inc : T_Z80_INC reg_r