Commit Graph

275 Commits

Author SHA1 Message Date
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
Anthony J. Bentley 6c10ca62ad Don't silently truncate banks greater than 255 to 8 bits. 2015-07-26 02:08:39 -06:00
stag019 6438ae2591 Remove __progname; add progname set to argv[0] in each main(). 2015-03-09 13:57:04 -04:00
stag019 ebc9a4b786 Merge include/link/types.h and include/asm/types.h into include/types.h 2015-03-07 16:04:07 -05:00
Anthony J. Bentley b5e7855afd Remove reference to currently nonexistent gbz80(7) manual. 2015-02-26 00:37:45 -07:00
Anthony J. Bentley ce7d1d5d49 Use real dates in the manpages. 2015-02-26 00:37:13 -07:00
Anthony J. Bentley 7055301616 Don’t unnecessarily escape hyphens in manpages. 2015-02-25 02:17:54 -07:00
Anthony J. Bentley bbf24916e6 Sync usage lines. 2015-02-25 02:16:41 -07:00
Anthony J. Bentley d02294505c Avoid use of magic numbers.
From Antonio Niño Díaz.
2015-02-22 03:55:51 -07:00
Anthony J. Bentley eb4bbb3e0b Update mapfile code to support new section types.
From Antonio Niño Díaz.
2015-02-22 03:52:28 -07:00
Anthony J. Bentley 2ab10a95e4 Fix a bug in handling WRAMX sections with/without hardcoded addresses.
From Antonio Niño Díaz.
2015-02-22 03:48:00 -07:00
Anthony J. Bentley bc60b85785 Support BANK() correctly when given WRAMX/SRAM/VRAM labels.
(Mostly) from Antonio Niño Díaz.
2015-02-22 03:33:18 -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
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