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