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
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
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
819615549f
move src/rgbfix/ to src/fix/ for consistency
2009-12-29 23:19:47 -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
6c1dd85c9a
add support for partial binary includes (from lmod00)
2009-09-12 18:46:08 -06:00
Anthony Bentley
50a8bbd414
Make grammar specifications yacc-compatible
2009-09-11 21:40:39 -06: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
Vegard Nossum
afe33e1162
link: move includes to include/link/
...
Signed-off-by: Vegard Nossum <vegard.nossum@gmail.com >
2009-06-11 09:22:49 +02:00
Vegard Nossum
618082bcab
lib: move includes to include/lib/
...
Signed-off-by: Vegard Nossum <vegard.nossum@gmail.com >
2009-06-11 09:18:21 +02:00
Vegard Nossum
cd779b9511
asm: moved includes to include/asm/
...
Signed-off-by: Vegard Nossum <vegard.nossum@gmail.com >
2009-06-11 09:14:19 +02:00
Vegard Nossum
26150fa9d4
asm: add newlines to the ends of yaccprt[134].y
...
Signed-off-by: Vegard Nossum <vegard.nossum@gmail.com >
2009-06-11 09:05:39 +02:00
Vegard Nossum
85f382ffad
asm: run dos2unix on yaccprt1.y
...
Signed-off-by: Vegard Nossum <vegard.nossum@gmail.com >
2009-06-11 09:03:53 +02:00
Vegard Nossum
c6d8069eed
rgbfix: use mkstemp() instead of tmpnam() and fix coding style issues
...
Signed-off-by: Vegard Nossum <vegard.nossum@gmail.com >
2009-06-11 08:59:03 +02:00