From 695dfe9dbd34ddf7d5541450bce41c6e67dd0fd8 Mon Sep 17 00:00:00 2001 From: Rangi Date: Sun, 4 Jul 2021 16:12:34 -0400 Subject: [PATCH] Add missing file line-continuation-string.asm Also make some minor formatting corrections --- src/asm/lexer.c | 2 +- src/asm/rgbasm.5 | 8 ++++---- test/asm/line-continuation-string.asm | 3 +++ 3 files changed, 8 insertions(+), 5 deletions(-) create mode 100644 test/asm/line-continuation-string.asm diff --git a/src/asm/lexer.c b/src/asm/lexer.c index 344698d2..8a05611d 100644 --- a/src/asm/lexer.c +++ b/src/asm/lexer.c @@ -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"); diff --git a/src/asm/rgbasm.5 b/src/asm/rgbasm.5 index cd41284d..00769a39 100644 --- a/src/asm/rgbasm.5 +++ b/src/asm/rgbasm.5 @@ -1979,9 +1979,9 @@ 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 @@ -1989,9 +1989,9 @@ lower bits equal to .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 , diff --git a/test/asm/line-continuation-string.asm b/test/asm/line-continuation-string.asm new file mode 100644 index 00000000..cb08b0d9 --- /dev/null +++ b/test/asm/line-continuation-string.asm @@ -0,0 +1,3 @@ +println "Line \ ; this comment is ignored +continuations\ ; so is this one + work!" ; =)