mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-21 18:52:07 +00:00
Add missing file line-continuation-string.asm
Also make some minor formatting corrections
This commit is contained in:
@@ -1042,7 +1042,7 @@ void lexer_DumpStringExpansions(void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Discards an block comment */
|
/* Discards a block comment */
|
||||||
static void discardBlockComment(void)
|
static void discardBlockComment(void)
|
||||||
{
|
{
|
||||||
dbgPrint("Discarding block comment\n");
|
dbgPrint("Discarding block comment\n");
|
||||||
|
|||||||
@@ -1979,9 +1979,9 @@ as presented in
|
|||||||
.Sx SECTIONS
|
.Sx SECTIONS
|
||||||
is often useful as-is, sometimes you instead want a particular piece of data (or code) in the middle of the section to be aligned.
|
is often useful as-is, sometimes you instead want a particular piece of data (or code) in the middle of the section to be aligned.
|
||||||
This is made easier through the use of mid-section
|
This is made easier through the use of mid-section
|
||||||
.Ic align Ar align , offset .
|
.Ic ALIGN Ar align , offset .
|
||||||
It will alter the section's attributes to ensure that the location the
|
It will alter the section's attributes to ensure that the location the
|
||||||
.Ic align
|
.Ic ALIGN
|
||||||
directive is at, has its
|
directive is at, has its
|
||||||
.Ar align
|
.Ar align
|
||||||
lower bits equal to
|
lower bits equal to
|
||||||
@@ -1989,9 +1989,9 @@ lower bits equal to
|
|||||||
.Pp
|
.Pp
|
||||||
If the constraint cannot be met (for example because the section is fixed at an incompatible address), and error is produced.
|
If the constraint cannot be met (for example because the section is fixed at an incompatible address), and error is produced.
|
||||||
Note that
|
Note that
|
||||||
.Ic align Ar align
|
.Ic ALIGN Ar align
|
||||||
is a shorthand for
|
is a shorthand for
|
||||||
.Ic align Ar align , No 0 .
|
.Ic ALIGN Ar align , No 0 .
|
||||||
.Sh SEE ALSO
|
.Sh SEE ALSO
|
||||||
.Xr rgbasm 1 ,
|
.Xr rgbasm 1 ,
|
||||||
.Xr rgblink 1 ,
|
.Xr rgblink 1 ,
|
||||||
|
|||||||
3
test/asm/line-continuation-string.asm
Normal file
3
test/asm/line-continuation-string.asm
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
println "Line \ ; this comment is ignored
|
||||||
|
continuations\ ; so is this one
|
||||||
|
work!" ; =)
|
||||||
Reference in New Issue
Block a user