mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Remove the deprecated -H/-h/-L/-l options
This commit is contained in:
@@ -1870,16 +1870,6 @@ z80_ei:
|
||||
z80_halt:
|
||||
Z80_HALT {
|
||||
sect_AbsByte(0x76);
|
||||
if (haltNop) {
|
||||
if (warnOnHaltNop) {
|
||||
warnOnHaltNop = false;
|
||||
warning(
|
||||
WARNING_OBSOLETE,
|
||||
"Automatic `nop` after `halt` (option 'H') is deprecated\n"
|
||||
);
|
||||
}
|
||||
sect_AbsByte(0x00);
|
||||
}
|
||||
}
|
||||
;
|
||||
|
||||
@@ -2002,20 +1992,8 @@ z80_ld_mem:
|
||||
sect_RelWord($2, 1);
|
||||
}
|
||||
| Z80_LD op_mem_ind COMMA MODE_A {
|
||||
if (optimizeLoads && $2.isKnown && $2.val >= 0xFF00) {
|
||||
if (warnOnLdOpt) {
|
||||
warnOnLdOpt = false;
|
||||
warning(
|
||||
WARNING_OBSOLETE,
|
||||
"Automatic `ld` to `ldh` optimization (option 'l') is deprecated\n"
|
||||
);
|
||||
}
|
||||
sect_AbsByte(0xE0);
|
||||
sect_AbsByte($2.val & 0xFF);
|
||||
} else {
|
||||
sect_AbsByte(0xEA);
|
||||
sect_RelWord($2, 1);
|
||||
}
|
||||
sect_AbsByte(0xEA);
|
||||
sect_RelWord($2, 1);
|
||||
}
|
||||
;
|
||||
|
||||
@@ -2059,20 +2037,8 @@ z80_ld_a:
|
||||
}
|
||||
| Z80_LD reg_r COMMA op_mem_ind {
|
||||
if ($2 == REG_A) {
|
||||
if (optimizeLoads && $4.isKnown && $4.val >= 0xFF00) {
|
||||
if (warnOnLdOpt) {
|
||||
warnOnLdOpt = false;
|
||||
warning(
|
||||
WARNING_OBSOLETE,
|
||||
"Automatic `ld` to `ldh` optimization (option 'l') is deprecated\n"
|
||||
);
|
||||
}
|
||||
sect_AbsByte(0xF0);
|
||||
sect_AbsByte($4.val & 0xFF);
|
||||
} else {
|
||||
sect_AbsByte(0xFA);
|
||||
sect_RelWord($4, 1);
|
||||
}
|
||||
sect_AbsByte(0xFA);
|
||||
sect_RelWord($4, 1);
|
||||
} else {
|
||||
::error("Destination operand must be A\n");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user