Commit Graph

312 Commits

Author SHA1 Message Date
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
stag019
116569f54d Fix for mapfiles and symfiles. Before, you couldn't define a mapfile unless you also defined a symfile. If you did, it would segfault. 2015-01-01 01:20:29 -05: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
3e4350afa4 Don't cast calls to malloc(). 2014-09-26 00:39:29 -06: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
Anthony J. Bentley
284600ef1f rgblink: Don't allocate unnecessary buffer. Delete unused flag. 2014-09-23 22:17:43 -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
Anthony J. Bentley
7770827cce Redefine consistent names for section types, and document the changes. 2013-07-31 22:14:31 -06:00
Anthony J. Bentley
7ab9742299 Implement SRAM sections. 2013-07-31 20:15:40 -06:00
Anthony J. Bentley
da19380cc4 Add a new WRAMX section type, for banked (CGB) WRAM sections. 2013-06-19 21:19:51 -06:00
Anthony J. Bentley
35448887af Implement VRAM banks. 2013-05-23 13:44:12 -06:00
Anthony J. Bentley
6579743410 Add support for 8 MiB ROMs, the largest size possible with MBC5. 2012-12-26 21:41:47 -07: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
Anthony J. Bentley
214d13c8d3 New sentence, new line. 2011-04-10 00:39:18 -06:00
Anthony J. Bentley
ba30863b73 In manuals, use wrapping macros instead of literal parens, etc. 2011-04-10 00:37:58 -06:00
Anthony J. Bentley
009ac34f32 Remove unnecessary comments from manpage sources 2011-04-10 00:15:35 -06:00
Anthony J. Bentley
9a9d071024 Oops: remove escape that was keeping manpage date from being parsed 2011-04-10 00:12:19 -06:00
Anthony J. Bentley
114871d46d Move manuals to the main source directories. 2010-12-22 14:23:35 -07:00
bentley
7293da9084 fix some error messages: err() instead of errx(strerror()) 2010-02-17 18:28:03 -07:00
bentley
3a95de144e this is why you should always test build *before* making a commit 2010-02-04 23:18:57 -07:00
bentley
1c8b31ca1d fix compile error
stupid bug, printed % instead of %s
2010-02-04 23:16:38 -07:00
bentley
02ba30f8e0 rgblink: improve file open error messages 2010-01-18 16:47:08 -07:00
bentley
761656c54b fopen does not take a "t" mode
"t" is a nonportable way of opening files in text mode. Windows
opens files in text mode by default anyway, and in UNIX there is
no text mode. (Passing "t" to fopen is undefined in standard C.)
2010-01-18 15:40:19 -07: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
1202c6b459 minor: fix implicit declaration warning 2010-01-15 11:04:00 -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
f81bcc722a build: merge everything to a single top-level Makefile
Signed-off-by: Vegard Nossum <vegard.nossum@gmail.com>
2009-06-11 10:08:32 +02:00
Vegard Nossum
a216855093 Move src/asmotor.h to top-level include/
Signed-off-by: Vegard Nossum <vegard.nossum@gmail.com>
2009-06-11 09:29:07 +02:00