From aa02958e18396e23334f48bfdff4fe196c9c5e66 Mon Sep 17 00:00:00 2001 From: ISSOtm Date: Sat, 15 May 2021 12:23:05 +0200 Subject: [PATCH] Fix mandoc warnings --- src/asm/rgbasm.5 | 9 ++++----- src/gbz80.7 | 11 +++++------ src/rgbds.5 | 2 +- 3 files changed, 10 insertions(+), 12 deletions(-) diff --git a/src/asm/rgbasm.5 b/src/asm/rgbasm.5 index 06ba34cd..fcba105c 100644 --- a/src/asm/rgbasm.5 +++ b/src/asm/rgbasm.5 @@ -494,7 +494,7 @@ All other sections must have a unique name, even in different source files, or t Possible section .Ar type Ns s are as follows: -.Bl -tag +.Bl -tag -width Ds .It Ic ROM0 A ROM section. .Ar addr @@ -602,7 +602,7 @@ sections. To put some in RAM, have it stored in ROM, and copy it to RAM. .Pp .Ar option Ns s are comma-separated and may include: -.Bl -tag +.Bl -tag -width Ds .It Ic BANK Ns Bq Ar bank Specify which .Ar bank @@ -978,7 +978,7 @@ This can be used, for example, to update a constant using a macro, without makin def NUM_ITEMS equ 0 MACRO add_item redef NUM_ITEMS equ NUM_ITEMS + 1 - def ITEM_{02x:NUM_ITEMS} equ \1 + def ITEM_{02x:NUM_ITEMS} equ \[rs]1 ENDM add_item 1 add_item 4 @@ -1265,7 +1265,6 @@ Linking failed with 1 error .Pp Note also that only exported symbols will appear in symbol and map files produced by .Xr rgblink 1 . -.Pp .Ss Purging symbols .Ic PURGE allows you to completely remove a symbol from the symbol table as if it had never existed. @@ -1755,7 +1754,7 @@ The value will be updated by .Ar step until it reaches or exceeds -.Ar stop. +.Ar stop . For example: .Bd -literal -offset indent FOR V, 4, 25, 5 diff --git a/src/gbz80.7 b/src/gbz80.7 index f77f1282..ad0f4632 100644 --- a/src/gbz80.7 +++ b/src/gbz80.7 @@ -28,7 +28,7 @@ OR B .Ed .Sh LEGEND List of abbreviations used in this document. -.Bl -tag +.Bl -tag -width Ds .It Ar r8 Any of the 8-bit registers .Pq Sy A , B , C , D , E , H , L . @@ -53,7 +53,7 @@ to .Pc . .It Ar cc Condition codes: -.Bl -tag -compact +.Bl -tag -width Ds -compact .It Sy Z Execute if Z is set. .It Sy NZ @@ -67,10 +67,9 @@ Execute if C is not set. One of the .Sy RST vectors -.Po Ad 0x00 , 0x08 , 0x10 , 0x18 , 0x20 , 0x28 , 0x30 +.Po Ad 0x00 , 0x08 , 0x10 , 0x18 , 0x20 , 0x28 , 0x30 , and -.Sy 0x38 -.Pc . +.Ad 0x38 Pc . .El .Sh INSTRUCTION OVERVIEW .Ss 8-bit Arithmetic and Logic Instructions @@ -1029,7 +1028,7 @@ Bytes: 1 Flags: None affected. .Pp This is sometimes written as -.Ql LD A,[HL+], , +.Ql LD A,[HL+] , or .Ql LDI A,[HL] . .Ss LD SP,n16 diff --git a/src/rgbds.5 b/src/rgbds.5 index 3bc607ac..7958e884 100644 --- a/src/rgbds.5 +++ b/src/rgbds.5 @@ -232,7 +232,7 @@ with some bytes being special prefixes for integers and symbols. .It Li $13 Ta Li unary ~ .It Li $21 Ta Li && comparison .It Li $22 Ta Li || comparison -.It Li $23 Ta Li unary\ ! +.It Li $23 Ta Li unary \&! .It Li $30 Ta Li == comparison .It Li $31 Ta Li != comparison .It Li $32 Ta Li > comparison