mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Make requested revisions to recent PRs (#1195)
This commit is contained in:
@@ -147,9 +147,9 @@ This acts as if a
|
|||||||
was read before the input
|
was read before the input
|
||||||
.Ar asmfile .
|
.Ar asmfile .
|
||||||
.It Fl p Ar pad_value , Fl Fl pad-value Ar pad_value
|
.It Fl p Ar pad_value , Fl Fl pad-value Ar pad_value
|
||||||
Use this as the fill value for
|
Use this as the value for
|
||||||
.Ic DS
|
.Ic DS
|
||||||
directives in ROM sections, unless they specify their own value or values.
|
directives in ROM sections, unless overridden.
|
||||||
The default is 0x00.
|
The default is 0x00.
|
||||||
.It Fl Q Ar fix_precision , Fl Fl q-precision Ar fix_precision
|
.It Fl Q Ar fix_precision , Fl Fl q-precision Ar fix_precision
|
||||||
Use this as the precision of fixed-point numbers after the decimal point, unless they specify their own precision.
|
Use this as the precision of fixed-point numbers after the decimal point, unless they specify their own precision.
|
||||||
|
|||||||
@@ -430,8 +430,12 @@ Most of them return a string, however some of these functions actually return an
|
|||||||
.It Fn STRIN str1 str2 Ta Returns the first position of Ar str2 No in Ar str1 No or zero if it's not present Pq first character is position 1 .
|
.It Fn STRIN str1 str2 Ta Returns the first position of Ar str2 No in Ar str1 No or zero if it's not present Pq first character is position 1 .
|
||||||
.It Fn STRRIN str1 str2 Ta Returns the last position of Ar str2 No in Ar str1 No or zero if it's not present Pq first character is position 1 .
|
.It Fn STRRIN str1 str2 Ta Returns the last position of Ar str2 No in Ar str1 No or zero if it's not present Pq first character is position 1 .
|
||||||
.It Fn STRSUB str pos len Ta Returns a substring from Ar str No starting at Ar pos No (first character is position 1, last is position -1) and Ar len No characters long. If Ar len No is not specified the substring continues to the end of Ar str .
|
.It Fn STRSUB str pos len Ta Returns a substring from Ar str No starting at Ar pos No (first character is position 1, last is position -1) and Ar len No characters long. If Ar len No is not specified the substring continues to the end of Ar str .
|
||||||
.It Fn STRUPR str Ta Returns Ar str No with all ASCII letters (`a-z`) in uppercase.
|
.It Fn STRUPR str Ta Returns Ar str No with all ASCII letters
|
||||||
.It Fn STRLWR str Ta Returns Ar str No with all ASCII letters (`A-Z`) in lowercase.
|
.Pq Ql a-z
|
||||||
|
in uppercase.
|
||||||
|
.It Fn STRLWR str Ta Returns Ar str No with all ASCII letters
|
||||||
|
.Pq Ql A-Z
|
||||||
|
in lowercase.
|
||||||
.It Fn STRRPL str old new Ta Returns Ar str No with each non-overlapping occurrence of the substring Ar old No replaced with Ar new .
|
.It Fn STRRPL str old new Ta Returns Ar str No with each non-overlapping occurrence of the substring Ar old No replaced with Ar new .
|
||||||
.It Fn STRFMT fmt args... Ta Returns the string Ar fmt No with each
|
.It Fn STRFMT fmt args... Ta Returns the string Ar fmt No with each
|
||||||
.Ql %spec
|
.Ql %spec
|
||||||
|
|||||||
@@ -1416,7 +1416,7 @@ do { \
|
|||||||
if (ramSize != UNSPECIFIED && (cartridgeType & 0xFF00) == 0) {
|
if (ramSize != UNSPECIFIED && (cartridgeType & 0xFF00) == 0) {
|
||||||
if (cartridgeType == ROM_RAM || cartridgeType == ROM_RAM_BATTERY) {
|
if (cartridgeType == ROM_RAM || cartridgeType == ROM_RAM_BATTERY) {
|
||||||
if (ramSize != 1)
|
if (ramSize != 1)
|
||||||
fprintf(stderr, "warning: MBC \"%s\" should have 2kiB of RAM (-r 1)\n",
|
fprintf(stderr, "warning: MBC \"%s\" should have 2 KiB of RAM (-r 1)\n",
|
||||||
mbcName(cartridgeType));
|
mbcName(cartridgeType));
|
||||||
} else if (hasRAM(cartridgeType)) {
|
} else if (hasRAM(cartridgeType)) {
|
||||||
if (!ramSize) {
|
if (!ramSize) {
|
||||||
@@ -1425,7 +1425,7 @@ do { \
|
|||||||
mbcName(cartridgeType));
|
mbcName(cartridgeType));
|
||||||
} else if (ramSize == 1) {
|
} else if (ramSize == 1) {
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"warning: RAM size 1 (2 kiB) was specified for MBC \"%s\"\n",
|
"warning: RAM size 1 (2 KiB) was specified for MBC \"%s\"\n",
|
||||||
mbcName(cartridgeType));
|
mbcName(cartridgeType));
|
||||||
} // TODO: check possible values?
|
} // TODO: check possible values?
|
||||||
} else if (ramSize) {
|
} else if (ramSize) {
|
||||||
|
|||||||
@@ -503,10 +503,10 @@ void obj_ReadFile(char const *fileName, unsigned int fileID)
|
|||||||
tryReadlong(revNum, file, "%s: Cannot read revision number: %s",
|
tryReadlong(revNum, file, "%s: Cannot read revision number: %s",
|
||||||
fileName);
|
fileName);
|
||||||
if (revNum != RGBDS_OBJECT_REV)
|
if (revNum != RGBDS_OBJECT_REV)
|
||||||
errx("%s: Unsupported object file for rgblink %s; try rebuilding it%s"
|
errx("%s: Unsupported object file for rgblink %s; try rebuilding \"%s\"%s"
|
||||||
" (expected revision %d, got %d)", fileName, get_package_version_string(),
|
" (expected revision %d, got %d)", fileName, get_package_version_string(),
|
||||||
revNum > RGBDS_OBJECT_REV ? " or updating rgblink" : "", RGBDS_OBJECT_REV,
|
fileName, revNum > RGBDS_OBJECT_REV ? " or updating rgblink" : "",
|
||||||
revNum);
|
RGBDS_OBJECT_REV, revNum);
|
||||||
|
|
||||||
uint32_t nbSymbols;
|
uint32_t nbSymbols;
|
||||||
uint32_t nbSections;
|
uint32_t nbSections;
|
||||||
|
|||||||
Reference in New Issue
Block a user