mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Document more obsolete syntax (#1618)
This commit is contained in:
@@ -15,7 +15,7 @@ assembly language over its decades of evolution, along with their modern alterna
|
|||||||
Its goal is to be a reference for backwards incompatibility, when upgrading an old assembly codebase to work with the latest RGBDS release.
|
Its goal is to be a reference for backwards incompatibility, when upgrading an old assembly codebase to work with the latest RGBDS release.
|
||||||
It does
|
It does
|
||||||
.Em not
|
.Em not
|
||||||
attempt to list syntax bugs that were fixed, nor new reserved keywords that may conflict with old identifiers.
|
attempt to list every syntax bug that was ever fixed (with some notable exceptions), nor new reserved keywords that may conflict with old identifiers.
|
||||||
.Sh REMOVED
|
.Sh REMOVED
|
||||||
These are features which have been completely removed, without any direct alternatives.
|
These are features which have been completely removed, without any direct alternatives.
|
||||||
Usually these features were limiting the addition of other features, or had awkward limits on their own intended effects.
|
Usually these features were limiting the addition of other features, or had awkward limits on their own intended effects.
|
||||||
@@ -288,7 +288,7 @@ Deprecated in 0.3.0, removed in 0.4.0.
|
|||||||
.Pp
|
.Pp
|
||||||
Instead, use
|
Instead, use
|
||||||
.Ql LD HL, SP + e8 .
|
.Ql LD HL, SP + e8 .
|
||||||
.Ss LDHL, SP, e8
|
.Ss LDHL SP, e8
|
||||||
Supported in ASMotor, removed in RGBDS.
|
Supported in ASMotor, removed in RGBDS.
|
||||||
.Pp
|
.Pp
|
||||||
Instead, use
|
Instead, use
|
||||||
@@ -360,6 +360,68 @@ Previously we had
|
|||||||
.Pp
|
.Pp
|
||||||
Instead, now we have
|
Instead, now we have
|
||||||
.Ql p ** q ** r == p ** (q ** r) .
|
.Ql p ** q ** r == p ** (q ** r) .
|
||||||
|
.Sh BUGS
|
||||||
|
These are misfeatures that may have been possible by mistake.
|
||||||
|
They do not get deprecated, just fixed.
|
||||||
|
.Ss Space between exported labels' colons
|
||||||
|
Fixed in 0.7.0.
|
||||||
|
.Pp
|
||||||
|
Labels with two colons used to ignore a space between them; for example,
|
||||||
|
.Ql Label:\ : .
|
||||||
|
.Pp
|
||||||
|
Instead, use
|
||||||
|
.Ql Label:: .
|
||||||
|
.Ss Space between label and colon
|
||||||
|
Fixed in 0.9.0.
|
||||||
|
.Pp
|
||||||
|
Space between a label and its colon(s) used to be ignored; for example,
|
||||||
|
.Ql Label\ :
|
||||||
|
and
|
||||||
|
.Ql Label\ :: .
|
||||||
|
Now they are treated as invocations of the
|
||||||
|
.Ql Label
|
||||||
|
macro with
|
||||||
|
.Ql \&:
|
||||||
|
and
|
||||||
|
.Ql ::
|
||||||
|
as arguments.
|
||||||
|
.Pp
|
||||||
|
Instead, use
|
||||||
|
.Ql Label:
|
||||||
|
and
|
||||||
|
.Ql Label:: .
|
||||||
|
.Ss ADD r16 with implicit first HL operand
|
||||||
|
Fixed in 0.5.0.
|
||||||
|
.Pp
|
||||||
|
For example,
|
||||||
|
.Ql ADD BC
|
||||||
|
used to be treated as
|
||||||
|
.Ql ADD HL, BC ,
|
||||||
|
and likewise for
|
||||||
|
.Ql DE ,
|
||||||
|
.Ql HL ,
|
||||||
|
and
|
||||||
|
.Ql SP .
|
||||||
|
.Pp
|
||||||
|
Instead, use an explicit first
|
||||||
|
.Ql HL
|
||||||
|
operand.
|
||||||
|
.Ss = instead of SET
|
||||||
|
Fixed in 0.4.0.
|
||||||
|
.Pp
|
||||||
|
The
|
||||||
|
.Ic =
|
||||||
|
operator used to be an alias for the
|
||||||
|
.Ic SET
|
||||||
|
keyword, which included using
|
||||||
|
.Ic =
|
||||||
|
for the
|
||||||
|
.Ic SET
|
||||||
|
.Em instruction .
|
||||||
|
.Pp
|
||||||
|
Instead, just use
|
||||||
|
.Ic SET
|
||||||
|
for the instruction.
|
||||||
.Sh SEE ALSO
|
.Sh SEE ALSO
|
||||||
.Xr rgbasm 1 ,
|
.Xr rgbasm 1 ,
|
||||||
.Xr gbz80 7 ,
|
.Xr gbz80 7 ,
|
||||||
|
|||||||
Reference in New Issue
Block a user