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
bentley
f617078fda
finish minor consistency output changes
2010-01-12 18:42:32 -07:00
anthony
198fcfaab3
minor text output changes
...
- Put quotes around string arguments
- Be consistent with spacing and colons
- Use 0xnn instead of 0Xnn
2010-01-12 18:17:31 -07:00
anthony
ac5b311005
use SI units (KiB) instead of the ambiguous kB
2010-01-12 18:04:42 -07:00
anthony
c3fa922c2f
fix quiet mode oversight
...
A line never printed because it checks for the wrong flag instead
of OPTF_QUIET. This fixes it.
2010-01-12 17:55:07 -07:00
anthony
b23c5ab4ba
rewrite usage to match new getopt() option format
2010-01-12 17:33:08 -07:00
anthony
16c7a49ffa
use getopt(3) instead of our hand-rolled flag parsing
...
Simplify and standardize the code by using the standard getopt()
function for parsing command-line flags.
This is a backwards-incompatible change.
2010-01-12 14:25:54 -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
b864431a14
add yacc output to the clean target
2010-01-05 14:11:54 -07:00
anthony
f9e443b10c
get rid of a strcpy() warning on OpenBSD
2010-01-05 14:08:18 -07:00
anthony
ed3e35e628
set default fillchar for rgbasm to 0, not random
2010-01-05 14:01:32 -07:00
anthony
290c65e9b2
minor spacing changes in output
2010-01-04 20:11:52 -07:00
anthony
8f1ad7f9fc
the -k flag wrote to the wrong location. fixing the bug
2010-01-04 20:09:05 -07:00
anthony
f0361ee025
many of the flags did not respect -d (debug) flag. this fixes them.
2010-01-04 20:04:25 -07:00
anthony
3649cec52d
add -k option to set new licensee code
2010-01-04 20:00:34 -07:00
anthony
fb81793d9f
add -s flag for SGB mode
2010-01-04 19:50:24 -07:00
anthony
6752b10204
add -j option for setting 0x14A (region flag)
2010-01-04 19:40:01 -07:00
anthony
2d72b12eb8
error out if both -o and -c are specified
2009-12-30 19:47:44 -07:00
anthony
77bbbba9f3
give warning if -c/-o overwrites last character of new title
2009-12-30 18:58:48 -07:00
anthony
8e9672c1dd
add -c/-o flags to set GBC flag (lmod)
2009-12-30 18:39:27 -07:00
anthony
317c2662ba
add -b option to the usage (lmod)
2009-12-30 16:54:24 -07:00
anthony
3397810e8d
when changing MBC, print the name of the MBC (lmod)
2009-12-30 16:52:37 -07:00
anthony
2afdc060d0
add -b option to change MBC type (lmod)
2009-12-30 16:32:28 -07:00
anthony
7e4104cabe
add option to change memory size (from lmod)
2009-12-30 15:55:00 -07:00
anthony
ecae948371
remove some tabs to make usage information easier to read on a terminal
2009-12-30 14:10:29 -07:00
anthony
dd16f2d59c
add new info on -p to usage information
2009-12-30 14:05:56 -07:00
anthony
0bc88ce7f7
Add an optional value parameter to -p (lmod)
2009-12-30 13:58:06 -07:00
anthony
d8070a10eb
run indent on header files (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:59:36 -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
anthony
ddd7fdac01
finish fixing segfault (probably caused by argv[] craziness)
...
this diff brought to you by lmod
2009-12-30 00:16:56 -07:00
anthony
e5ac9c2cd8
partially fix segfault when run with options but no input file
...
(caused by fclose()-ing an unopened file)
2009-12-30 00:08:25 -07:00
anthony
5e9c2ee2ab
finish moving src/rgbfix/ to src/fix/
2009-12-29 23:39:06 -07:00
anthony
819615549f
move src/rgbfix/ to src/fix/ for consistency
2009-12-29 23:19:47 -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