From a890bd072b9249cd4ee4cc9855c852cd9287b353 Mon Sep 17 00:00:00 2001 From: Rangi Date: Wed, 31 Mar 2021 18:06:14 -0400 Subject: [PATCH] Fix "INCBIN" Examples: (...s are optional) ld [b @:...] = "Dockerfile" ld [b @:...] = "Dockerfile"[451:...] ld [b @:...] = "Dockerfile"[23:5] ld [b @:5] = "Dockerfile"[23:...] --- src/asm/parser.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/asm/parser.y b/src/asm/parser.y index 9a49435f..46c2a70b 100644 --- a/src/asm/parser.y +++ b/src/asm/parser.y @@ -1635,7 +1635,7 @@ cpu_command : T_Z80_LD z80_ld_args | T_Z80_LD T_MODE_DE T_COMMA z80_ld_de_comma_args | T_Z80_LD T_MODE_HL T_COMMA z80_ld_hl_comma_args | T_Z80_LD T_MODE_SP T_COMMA z80_ld_sp_comma_args - | T_LBRACK T_TOKEN_B T_TOKEN_AT T_COLON optional_ellipsis T_RBRACK T_POP_EQUAL z80_ld_incbin_args + | T_Z80_LD T_LBRACK T_TOKEN_B T_TOKEN_AT T_COLON optional_ellipsis T_RBRACK T_POP_EQUAL z80_ld_incbin_args ; z80_ld_args : T_MODE_PC T_COMMA T_MODE_PC { out_AbsByte(0x00); } // $00: nop ==> ld pc, pc