shithub: rgbds

Download patch

ref: bdb84a901f648f94fda80db098f48aac3a96ac4c
parent: 093631ca0b0c3a0db9e161d105c8b9fcac9e660e
author: ISSOtm <eldredhabert0@gmail.com>
date: Thu Mar 18 18:37:18 EDT 2021

Use sub-sections for the different symbol types

This will make them appear in the ToC, and generate HTML anchors for them

--- a/src/asm/rgbasm.5
+++ b/src/asm/rgbasm.5
@@ -869,8 +869,7 @@
 .Sq \&.
 are allowed exclusively in labels, as described below.
 A symbol cannot have the same name as a reserved keyword.
-.Bl -tag -width indent
-.It Sy Label declaration
+.Ss Label declaration
 One of the assembler's main tasks is to keep track of addresses for you, so you can work with meaningful names instead of "magic" numbers.
 .Pp
 This can be done in a number of ways:
@@ -945,7 +944,7 @@
 .Pp
 .Nm
 is able to compute the subtraction of two labels either if both are constant as described above, or if both belong to the same section.
-.It Ic EQU
+.Ss Immutable constants
 .Ic EQU
 is used to define numerical constant symbols.
 Unlike
@@ -960,7 +959,7 @@
 Note that colons
 .Ql \&:
 following the name are not allowed.
-.It Ic SET
+.Ss Mutable constants
 .Ic SET ,
 or its synonym
 .Ic = ,
@@ -980,8 +979,8 @@
 Note that colons
 .Ql \&:
 following the name are not allowed.
-.It Ic RSSET , RSRESET , RB , RW
-The RS group of commands is a handy way of defining structures:
+.Ss Offset constants
+The RS group of commands is a handy way of defining structure offsets:
 .Bd -literal -offset indent
                RSRESET
 DEF str_pStuff RW   1
@@ -1017,7 +1016,7 @@
 Note that colons
 .Ql \&:
 following the name are not allowed.
-.It Ic EQUS
+.Ss String equates
 .Ic EQUS
 is used to define string equate symbols.
 Wherever the assembler reads a string equate, it gets
@@ -1128,7 +1127,7 @@
 ; prints "Y $2A"
 PRINTLN "{X} {Y}"
 .Ed
-.It Ic MACRO
+.Ss Macros
 One of the best features of an assembler is the ability to write macros for it.
 Macros can be called with arguments, and can react depending on input using
 .Ic IF