ref: 3948795d498827f9b4fb1babcf9cdfe00a6ec4fc
parent: 13e492012236032816c70e6d8f34da47d6c1924b
author: ISSOtm <[email protected]>
date: Tue Mar 10 12:04:58 EDT 2020
Remove deprecated section types
--- a/src/asm/asmy.y
+++ b/src/asm/asmy.y
@@ -593,7 +593,6 @@
%token T_POP_OPT
%token T_SECT_WRAM0 T_SECT_VRAM T_SECT_ROMX T_SECT_ROM0 T_SECT_HRAM
%token T_SECT_WRAMX T_SECT_SRAM T_SECT_OAM
-%token T_SECT_HOME T_SECT_DATA T_SECT_CODE T_SECT_BSS
%token T_Z80_ADC T_Z80_ADD T_Z80_AND
%token T_Z80_BIT
@@ -621,7 +620,7 @@
%token T_MODE_AF
%token T_MODE_BC T_MODE_BC_IND
%token T_MODE_DE T_MODE_DE_IND
-%token T_MODE_SP T_MODE_SP_IND
+%token T_MODE_SP
%token T_MODE_C_IND
%token T_MODE_HL T_MODE_HL_IND T_MODE_HL_INDDEC T_MODE_HL_INDINC
%token T_CC_NZ T_CC_Z T_CC_NC
@@ -1323,22 +1322,6 @@
| T_SECT_WRAMX { $$ = SECTTYPE_WRAMX; }
| T_SECT_SRAM { $$ = SECTTYPE_SRAM; }
| T_SECT_OAM { $$ = SECTTYPE_OAM; }
- | T_SECT_HOME {
- warning(WARNING_OBSOLETE, "HOME section name is deprecated, use ROM0 instead.");
- $$ = SECTTYPE_ROM0;
- }
- | T_SECT_DATA {
- warning(WARNING_OBSOLETE, "DATA section name is deprecated, use ROMX instead.");
- $$ = SECTTYPE_ROMX;
- }
- | T_SECT_CODE {
- warning(WARNING_OBSOLETE, "CODE section name is deprecated, use ROMX instead.");
- $$ = SECTTYPE_ROMX;
- }
- | T_SECT_BSS {
- warning(WARNING_OBSOLETE, "BSS section name is deprecated, use WRAM0 instead.");
- $$ = SECTTYPE_WRAM0;
- }
;
sectorg : /* empty */ { $$ = -1; }
--- a/src/asm/globlex.c
+++ b/src/asm/globlex.c
@@ -402,7 +402,6 @@
{"[hl-]", T_MODE_HL_INDDEC},
{"[hli]", T_MODE_HL_INDINC},
{"[hld]", T_MODE_HL_INDDEC},
- {"[sp]", T_MODE_SP_IND},
{"af", T_MODE_AF},
{"bc", T_MODE_BC},
{"de", T_MODE_DE},
@@ -527,12 +526,6 @@
{"wramx", T_SECT_WRAMX},
{"sram", T_SECT_SRAM},
{"oam", T_SECT_OAM},
-
- /* Deprecated section type names */
- {"home", T_SECT_HOME},
- {"code", T_SECT_CODE},
- {"data", T_SECT_DATA},
- {"bss", T_SECT_BSS},
{"rb", T_POP_RB},
{"rw", T_POP_RW},