Commit Graph
99 Commits
Author SHA1 Message Date
Anthony J. Bentley 9f9e76e85f Use the semantic .Ad in manpages. 2011-04-10 00:08:44 -06:00
Anthony J. Bentley 085ee6d4c0 Fix typo in rgbds(7). 2010-12-22 15:59:19 -07:00
Anthony J. Bentley 0f606e5d83 Add a rgbds(7) manpage. 2010-12-22 15:35:32 -07:00
Anthony J. Bentley 376c8d2f5b Update man page: .gb will no longer be added to a filename without it 2010-12-22 15:15:43 -07:00
Anthony J. Bentley 6f46058e21 Add an install target. 2010-12-22 14:38:45 -07:00
Anthony J. Bentley b9f92536a9 Remove “localversion” script. 2010-12-22 14:26:43 -07:00
Anthony J. Bentley 7384c41c82 Minor whitespace improvements 2010-12-22 14:24:46 -07:00
Anthony J. Bentley 114871d46d Move manuals to the main source directories. 2010-12-22 14:23:35 -07:00
Anthony J. Bentley 5ae2dc4844 Replace UTF8-encoded ø with mdoc escapes.
It absolutely kills me to have to do this in 2010. Unix should be using
UTF-8 everywhere.
2010-12-22 13:52:55 -07:00
Anthony J. Bentley d2f52fdd0c Rewrite rgbfix from scratch, under a free ISC license.
Slight changes in usage; the man page has been updated accordingly.
2010-12-22 13:48:44 -07:00
Anthony J. Bentley 05be8e0011 Delete rgbfix, to be replaced with a freely-licensed version 2010-12-22 13:19:37 -07:00
Anthony J. Bentley b1739d95a5 Silence build process 2010-12-22 13:15:55 -07:00
bentley 0da1489da1 replace readme with installation instructions 2010-04-03 19:43:03 -06:00
bentley 2fa9a3c768 new sentence, new line
see http://marc.info/?l=openbsd-tech&m=126956447409663&w=2
2010-03-25 21:58:23 -06:00
bentley ccbfa16d7f fix small mdoc error 2010-03-18 21:05:50 -06:00
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
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
bentley bb85782faa this is a bourne script, bash is not needed
Don't use /bin/bash ! Many systems do not have bash there (they
might have it at /usr/local/bin/bash, for example). Don't specify
bash unless you specifically need bash features -- many systems
do not have bash installed by default.
2010-01-14 22:16:59 -07:00
bentley b69cd0c345 -v doesn't need to modify ROM size; -p can do that 2010-01-13 11:22:56 -07:00
bentley 2da63e2f7d cosmetic change: rearrange getopt() switch for easier reading
cases are put in alphabetical order, to match the getopt string.
2010-01-13 10:08:23 -07:00
bentley 0b647c5a25 move color only flag to -c, color compatible flag to -C 2010-01-13 10:04:42 -07:00
bentley 2d5c193e6d move MBC option from -b to -m 2010-01-13 09:50:02 -07:00
bentley cd52e3c56c move ramsize option from -m to -r 2010-01-13 09:48:13 -07:00
bentley 5931973029 fix compile error on Linux 2010-01-13 08:26:48 -07:00
bentley a913dc01b5 remove unused variable argn (no longer needed due to getopt(3) usage) 2010-01-13 07:33:02 -07:00
bentley 9da8db3ce1 fix cast warnings 2010-01-13 07:31:34 -07:00
bentley cdb90cea29 remove archaic 512KiB error, replace with 8MiB warning 2010-01-12 22:46:53 -07:00
bentley d0a03bc99b pad option now changes the ROM size at 0x148 2010-01-12 22:40:37 -07:00
bentley cba8933c11 remove unneeded carttype checking in -v
To simplify the code, remove the carttype work in the -v option.
Because the MBC option already alters it, this one is superfluous.
2010-01-12 21:21:48 -07:00
bentley b2a4f54f59 rename PrintUsage() to usage(), and return EX_USAGE 2010-01-12 19:52:42 -07:00
bentley 5fe2bcbeed use errx(3) and warnx(3) instead of rolling our own error functions 2010-01-12 19:44:21 -07:00
bentley fd9901a280 remove the -r (truncate) option
I can't think of a single use case for the -r (truncate) option.
It has been removed to make the code simpler.

If you do use it and have good reason to do so, let me know and I
will consider putting it back in.
2010-01-12 19:05:23 -07:00
Anthony Bentley b6a50a3afc added -q to the documentation 2009-11-08 21:27:15 -07:00
Anthony Bentley db0667e54e added a command line option -q for quiet mode (suppresses messages except errors) (lmod) 2009-11-08 20:28:24 -07:00
Anthony Bentley b7ca2e2b87 rgbfix: add warning function, separate output between stdout and stderr (lmod) 2009-11-08 19:49:02 -07:00
Anthony Bentley be13e051f4 xlib: separate output between stdout and stderr (from lmod) 2009-11-08 19:28:59 -07:00
Anthony Bentley 46c131bc86 more HTML formatting gunk 2009-11-08 18:47:28 -07:00
Anthony Bentley 42007c5c92 remove HTML formatting gunk from a lot of the docs 2009-11-06 23:01:00 -07:00
Anthony Bentley e1f5352ba5 makefile now works with BSD make 2009-11-06 18:37:47 -07:00
Anthony Bentley 8cbc2f4471 use ${CC} and ${YACC} instead of hardcoded programs 2009-11-06 14:59:16 -07:00
Anthony Bentley 8fd364a1a6 document partial binary includes 2009-09-12 18:53:03 -06:00
Anthony Bentley 6c1dd85c9a add support for partial binary includes (from lmod00) 2009-09-12 18:46:08 -06:00
Anthony Bentley 7d0dd140c3 create stylesheet and link to it
Created a simple stylesheet, linked to it, and removed body color
attributes defined there. This reduces repetition and separates
style and presentation.
2009-09-12 17:49:54 -06:00
Anthony Bentley 171061f3a3 Replaced needless anchors with IDs 2009-09-12 17:10:31 -06:00
Anthony Bentley cd2e59fc8c converted DOS linebreaks to UNIX 2009-09-12 16:47:49 -06:00
Anthony Bentley 3eb060b017 HTML4 Transitional doctype
This is so the HTML can be made simpler later on.
2009-09-12 16:14:08 -06:00
Anthony Bentley 1c734a015d correct error in documentation 2009-09-12 06:40:24 -06:00
Anthony Bentley 792fb5ef94 Put in the original license 2009-09-11 22:45:47 -06:00
Anthony Bentley c0031dad51 use [b]yacc instead of bison by default
This is scratching my own itch--OpenBSD has byacc in the base
distribution, whereas bison is another program to install.
2009-09-11 22:01:49 -06:00
Anthony Bentley 50a8bbd414 Make grammar specifications yacc-compatible 2009-09-11 21:40:39 -06:00