Commit Graph

3447 Commits

Author SHA1 Message Date
bentley b53c945f05 Man pages! 2010-02-27 19:19:50 -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 2a3cd65ee8 rgbasm: improve "undefined macro" error message 2010-01-18 20:41:34 -07:00
bentley 5f23215c5d rgbasm: improve error message for failed INCBIN 2010-01-18 17:42:54 -07:00
bentley 02ba30f8e0 rgblink: improve file open error messages 2010-01-18 16:47:08 -07:00
bentley aea1990de3 rgbfix: minor correction to last error message commit 2010-01-18 16:29:48 -07:00
bentley 5302f36d38 rgblib: improve file open error message 2010-01-18 16:27:42 -07:00
bentley f97e856a1f rgbfix: improve file open error message 2010-01-18 16:17:13 -07:00
bentley b1469902d6 filesize() function was unused! guess I'll remove it 2010-01-18 15:45:38 -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 0d16e5c573 rgbasm: fix usage (-p, not -z) 2010-01-18 14:41:24 -07:00
bentley c6fb526a88 if module name is too long, error out rather than silently truncate 2010-01-17 16:26:46 -07:00
bentley a3eb287044 rgblib: fix usage information, make it match the rest of rgbds 2010-01-17 15:35:02 -07:00
bentley f4a56de4df remove unused variable 2010-01-17 15:32:35 -07:00
bentley def4f61d5a rgbfix: juvenile mistake. Make last commit work the way it should 2010-01-17 15:31:13 -07:00
bentley 7d6fac9c00 rgblib: use full commands instead of letters ("add" instead of "a") 2010-01-17 15:28:28 -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 860c9883bb rgbasm: fix usage information 2010-01-15 19:50:58 -07:00
bentley e25d69e976 rgblib: return EX_USAGE for usage-related errors 2010-01-15 19:44:46 -07:00
bentley 8406fd84d6 rgbasm: return EX_USAGE for option errors 2010-01-15 19:42:17 -07:00
bentley 5694d6907c rgbasm: use getopt(3) instead of hand-rolled flag parsing 2010-01-15 19:40:35 -07:00
bentley c3e212d399 stop a strcpy() warning on OpenBSD 2010-01-15 19:15:24 -07:00
bentley 80e957b5d5 make makefile respect CFLAGS 2010-01-15 18:55:34 -07:00
bentley 7474cee70d rgbasm: use errx() for some error messages
Need to replace fstk_Dump to fix the rest of the error messages
2010-01-15 18:51:14 -07:00
bentley bd84313462 remove GAMEBOY/PCENGINE conditionals (this is a Game Boy assembler) 2010-01-15 17:18:58 -07:00
bentley 795542103d fix "static declaration follows non-static" warning 2010-01-15 17:16:06 -07:00
bentley 35af90723b fix implied declaration warning 2010-01-15 17:11:06 -07:00
bentley e5ba184ef3 fix strcpy() warning on OpenBSD 2010-01-15 17:07:33 -07:00
bentley 4feaa929ff fix usage fill character info 2010-01-15 17:05:06 -07:00
bentley 48fd34c923 rgbasm: remove option for random fill character 2010-01-15 17:04:34 -07:00
bentley b63924ebf4 remove endianness code (this is solely a Game Boy assembler now) 2010-01-15 16:46:26 -07:00
bentley 24c1613f06 remove mswin-type define -- this is UNIX 2010-01-15 16:35:10 -07:00
bentley 913e9c9e4f rgblib: use errx() for error messages 2010-01-15 16:29:20 -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 dc390e8c1f and rename xlib to rgblib 2010-01-15 12:44:46 -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