Antonio Niño Díaz
d0e0525302
Add -V to all programs to show the version
...
This option has been added to all programs of the toolchain, and it
prints the version string of the toolchain.
Manpages and help command line output updated.
Add missing 'w' flag to the command line output of rgbasm. It was
correctly documented in the manpages.
Signed-off-by: Antonio Niño Díaz <antonio_nd@outlook.com >
2017-07-22 10:14:02 +01:00
Antonio Niño Díaz
5679c7066b
Restore behaviour of option -w and add option -d
...
rgblink option -w has been restored to its previous behaviour: make WRAM
a continous section instead of spliting it into WRAM0 and WRAMX.
To enable DMG mode, option -d has to be used instead. This option
automatically enables -w.
Update tests.
Signed-off-by: Antonio Niño Díaz <antonio_nd@outlook.com >
2017-04-10 20:03:52 +01:00
Antonio Niño Díaz
3d8396b86f
Remove progname variable
...
The error message shouldn't specify the name of the binary, that's
supposed to be known by the caller.
Update test reference outputs.
Signed-off-by: Antonio Niño Díaz <antonio_nd@outlook.com >
2017-04-08 18:10:14 +01:00
Antonio Niño Díaz
e3109af2f8
Rename OPT_CONTWRAM to OPT_DMG_MODE
...
Now, it will also make sure that VRAM bank 1 isn't used.
Man page updated.
Tests added.
Signed-off-by: Antonio Niño Díaz <antonio_nd@outlook.com >
2017-04-08 18:08:51 +01:00
AntonioND
e9ed81074b
Rename OPT_SMALL to OPT_TINY
...
This way it is easier to identify the flag passed to the binary (-t).
Signed-off-by: AntonioND <antonio_nd@outlook.com >
2017-04-03 21:22:16 +01:00
AntonioND
25be5c6561
Improve error and warning output
...
Improve error messages generated by `errx()`, `warnx()` and similar.
Set `progname` to a static string with the name of the program so that
the path of the binary isn't included in error messages.
Signed-off-by: AntonioND <antonio_nd@outlook.com >
2017-04-03 21:16:43 +01:00
AntonioND
d1ed4fbded
Use linkerscript parser in rgblink
...
Signed-off-by: AntonioND <antonio_nd@outlook.com >
2017-03-28 22:19:50 +01:00
AntonioND
469e3e7c86
Merge branch 'contiguous-wram' of git://github.com/TwitchPlaysPokemon/rgbds into TwitchPlaysPokemon-contiguous-wram
2017-03-15 21:00:06 +00:00
scnorton
6d1c60b0a6
Contiguous WRAM
2017-02-06 16:31:57 -05:00
Sanqui
2e9c68f8c3
Add overlay file option to rgblink (-O)
...
This option takes a file and places fixed sections on top of it.
Should prove useful for patches and partial disassemblies.
2016-03-28 01:02:05 +02:00
Anthony J. Bentley
2ea2e47231
Avoid a pointless strcpy().
2015-10-05 23:58:00 -06:00
stag019
6438ae2591
Remove __progname; add progname set to argv[0] in each main().
2015-03-09 13:57:04 -04:00
Anthony J. Bentley
bbf24916e6
Sync usage lines.
2015-02-25 02:16:41 -07:00
Anthony J. Bentley
8534f3a148
Unify usage strings/functions across programs.
...
The funny spacing is to make it easier to keep to 80 characters/line.
2015-01-07 23:13:18 -07:00
Anthony J. Bentley
1e1339467e
Use POSIX 2001 as the base standard.
2014-11-06 21:39:36 -07:00
stag019
80e2129f22
Merge https://github.com/bentley/rgbds
...
Conflicts:
include/lib/types.h
src/asm/symbol.c
2014-11-02 01:00:20 -05:00
Anthony J. Bentley
0d07caba60
Remove inconsistent version numbering.
2014-09-25 20:56:15 -06:00
Anthony J. Bentley
d7319ecd00
Remove rgblib.
...
I have never used it and it's probably been broken for years.
2014-09-24 03:03:42 -06:00
Anthony J. Bentley
d661b3a532
Now that we replace missing libc functions, switch back to err().
2014-09-24 02:50:39 -06:00
stag019
c61c112218
Remove GNU-specific <getopt.h>. getopt() is defined in <unistd.h> in POSIX, which adding #define _XOPEN_SOURCE 500 causes GCC to include.
2013-12-23 14:57:06 -05:00
Vegard Nossum
eb4f790a82
Include getopt.h (fix compilation on GNU/Linux)
...
Signed-off-by: Vegard Nossum <vegard.nossum@gmail.com >
2012-10-21 06:05:30 +02:00
Anthony J. Bentley
5d6559f15f
Remove nonstandard <err.h>.
...
This provides some really nice functions, but does not exist in some
environments (particularly MinGW).
2011-12-02 01:23:23 -07:00
Anthony J. Bentley
b1a2c664a9
Revert use of system exit codes.
...
While well‐intentioned, in practice this hurts portability and
really, nobody checks the return codes anyway.
2011-06-04 21:33:03 -06:00
bentley
bd568d9afc
rgblink: make usage() print better in a terminal window
2010-01-17 15:11:52 -07:00
bentley
02e6220742
standardize on -p for setting pad value
2010-01-15 20:04:37 -07:00
bentley
24c1613f06
remove mswin-type define -- this is UNIX
2010-01-15 16:35:10 -07:00
bentley
2648ee9811
rgblink: remove vestigial linkfile function
2010-01-15 14:33:49 -07:00
bentley
06c4e1fb4b
rgblink: set default fill byte to 0x00
2010-01-15 13:11:14 -07:00
bentley
deccbb07e9
rgblink: remove random option for fill character
2010-01-15 13:05:16 -07:00
bentley
bfbc9fd101
while we're removing backwards compatibility, rename xlink->rgblink
2010-01-15 12:42:16 -07:00
bentley
084cc995e7
make >32KiB default; replace "-t s" with "-t" (tiny?)
2010-01-15 12:38:19 -07:00
bentley
367abd8396
remove psion2 compatibility; i doubt anyone uses it
2010-01-15 12:35:11 -07:00
bentley
97b9e822aa
xlink: fix usage
2010-01-15 12:15:19 -07:00
bentley
755572c111
replace linkfile functionality with command-line options
...
Instead of running:
$ xlink linkfile.txt
where the linkfile looks like:
---
[Objects]
foo.o
bar.o
[Libraries]
foo.l
bar.l
[Output]
baz.gb
---
we now do:
$ xlink -o baz.gb -l foo.l -l bar.l foo.o bar.o
2010-01-15 10:52:38 -07:00
bentley
b223905e67
xlink: use some proper return values
2010-01-15 00:33:46 -07:00
bentley
157fda2bc8
xlink: fix usage printing to match new options (and rgbfix format)
2010-01-15 00:29:10 -07:00
bentley
c5ce3ae178
xlink: use getopt(3) instead of hand-rolled flag parsing
2010-01-15 00:23:59 -07:00
bentley
0017a93a13
minor: finish removing unused var temptext
2010-01-14 23:47:10 -07:00
bentley
0b08fca9f2
xlink: replace awkward fatalerror() with standard errx(3)
...
fatalerror() prints a given string to stdout and exits(5). It
cannot format text, so there was a string temptext used with
sprintf() to format text and pass it to fatalerror().
errx() can format text, and it prints to stderr.
As a bonus, this fixes the linking warnings from use of sprintf().
2010-01-14 23:17:22 -07:00
anthony
8f5e767615
list new default init values in usage information (rgbasm, xlink)
2010-01-05 14:21:42 -07:00
anthony
8614871e68
change unitialized byte values in xlink to 0
2010-01-05 14:17:24 -07:00
anthony
a014537837
reran indent (whitespace changes)
...
Merging lai's source with this one is very irritating because
they have different indentation styles. I couldn't find what profile
vegard used for his version, so I used these flags (which should bring
the source close to KNF):
-bap
-br
-ce
-ci4
-cli0
-d0
-di0
-i8
-ip
-l79
-nbc
-ncdb
-ndj
-ei
-nfc1
-nlp
-npcs
-psl
-sc
-sob
2009-12-30 12:51:32 -07:00
Vegard Nossum
afe33e1162
link: move includes to include/link/
...
Signed-off-by: Vegard Nossum <vegard.nossum@gmail.com >
2009-06-11 09:22:49 +02:00
Vegard Nossum
3c82b1ae03
Fixed warnings and some style issues
...
Signed-off-by: Vegard Nossum <vegard.nossum@gmail.com >
2009-06-11 08:51:55 +02:00
Vegard Nossum
b6c749ffbd
Run `indent' on the whole tree
...
Can't indent the .y files yet, they need special treatment.
Signed-off-by: Vegard Nossum <vegard.nossum@gmail.com >
2009-06-11 07:59:46 +02:00
Vegard Nossum
94fad97aed
Switch line terminators from CRLF to LF
...
Argh, that obnoxious platform again... ;-)
Signed-off-by: Vegard Nossum <vegard.nossum@gmail.com >
2009-06-11 07:32:12 +02:00
Vegard Nossum
0d9739535e
Use spaces instead of tabs after CPP directives
...
Signed-off-by: Vegard Nossum <vegard.nossum@gmail.com >
2009-06-11 07:26:46 +02:00
Vegard Nossum
b53e170781
Make all file names lowercase
...
This fixes a zip/platform artifact.
Signed-off-by: Vegard Nossum <vegard.nossum@gmail.com >
2009-06-11 06:25:27 +02:00