shithub: rgbds

Download patch

ref: 9113647d410da7d849127df457388f80c75c13d0
parent: 26af2bff5e3d379d8b9a46baed8bcb9b96b32745
author: ISSOtm <[email protected]>
date: Tue Mar 24 14:38:58 EDT 2020

Fix incorrect macro used for x-ref

--- a/src/asm/rgbasm.5
+++ b/src/asm/rgbasm.5
@@ -231,6 +231,7 @@
 .It Ql \[rs]{ Ta Curly bracket left
 .It Ql \[rs]} Ta Curly bracket right
 .It Ql \[rs]n Ta Newline ($0A)
+.It Ql \[rs]r Ta Carriage return ($0D)
 .It Ql \[rs]t Ta Tab ($09)
 .It Qo \[rs]1 Qc \[en] Qo \[rs]9 Qc Ta Macro argument (Only the body of a macro, see Sx Invoking macros )
 .It Ql \[rs]@ Ta Label name suffix (Only in the body of macros and REPTs)
@@ -1031,7 +1032,7 @@
 Unions may be used in any section, but inside them may only be
 .Ic DS -
 like commands (see
-.Xr Declaring variables in a RAM section ) .
+.Sx Declaring variables in a RAM section ) .
 .Sh THE MACRO LANGUAGE
 .Ss Invoking macros
 .Pp
@@ -1179,6 +1180,9 @@
 and so forth.
 .Pp
 This is the only way of accessing the value of arguments from 10 to 256.
+.Pp
+.Ic SHIFT
+can optionally be given an integer parameter, and will apply the above shifting that number of times.
 .Ss Printing things during assembly
 .Pp
 The next four commands print text and values to the standard output.
@@ -1308,7 +1312,7 @@
 If the assertion fails,
 .Ic WARN
 will cause a simple warning (controlled by
-.Xr rgbasm 1 DIAGNOSTICS
+.Xr rgbasm 1
 flag
 .Fl Wassert )
 to be emitted;