Allow forcing the second byte of STOP

Fixes #433
This commit is contained in:
ISSOtm
2020-02-07 10:06:02 +01:00
parent ee34200e5f
commit 9687e6e1dd
3 changed files with 10 additions and 0 deletions

View File

@@ -2126,6 +2126,11 @@ z80_stop : T_Z80_STOP
out_AbsByte(0x10); out_AbsByte(0x10);
out_AbsByte(0x00); out_AbsByte(0x00);
} }
| T_Z80_STOP const_8bit
{
out_AbsByte(0x10);
out_RelByte(&$2);
}
; ;
z80_sub : T_Z80_SUB op_a_n z80_sub : T_Z80_SUB op_a_n

View File

@@ -235,3 +235,8 @@ jrlabel:
nop nop
scf scf
stop stop
BYTE = 0
REPT 256
stop BYTE
BYTE = BYTE + 1
ENDR

Binary file not shown.