Skip to content

Commit

Permalink
Add missing file line-continuation-string.asm
Browse files Browse the repository at this point in the history
Also make some minor formatting corrections
  • Loading branch information
Rangi42 committed Jul 4, 2021
1 parent 9782f7d commit 695dfe9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/asm/lexer.c
Original file line number Diff line number Diff line change
Expand Up @@ -1042,7 +1042,7 @@ void lexer_DumpStringExpansions(void)
}
}

/* Discards an block comment */
/* Discards a block comment */
static void discardBlockComment(void)
{
dbgPrint("Discarding block comment\n");
Expand Down
8 changes: 4 additions & 4 deletions src/asm/rgbasm.5
Original file line number Diff line number Diff line change
Expand Up @@ -1979,19 +1979,19 @@ as presented in
.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.
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
.Ic align
.Ic ALIGN
directive is at, has its
.Ar align
lower bits equal to
.Ar offset .
.Pp
If the constraint cannot be met (for example because the section is fixed at an incompatible address), and error is produced.
Note that
.Ic align Ar align
.Ic ALIGN Ar align
is a shorthand for
.Ic align Ar align , No 0 .
.Ic ALIGN Ar align , No 0 .
.Sh SEE ALSO
.Xr rgbasm 1 ,
.Xr rgblink 1 ,
Expand Down
3 changes: 3 additions & 0 deletions test/asm/line-continuation-string.asm
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
println "Line \ ; this comment is ignored
continuations\ ; so is this one
work!" ; =)

0 comments on commit 695dfe9

Please sign in to comment.