AntonioND
e50e3e5a23
Remove trailing whitespace
...
Signed-off-by: AntonioND <antonio_nd@outlook.com >
2017-04-02 17:46:14 +01:00
AntonioND
317b206fa8
Improve map file output
...
Print the name of each section along with the size, base and end
addresses. If a section is empty, don't print the end address, as it
can overflow if the base address is 0.
Signed-off-by: AntonioND <antonio_nd@outlook.com >
2017-03-15 23:52:56 +00:00
Ben10do
3dcfe2b9f6
Add support for OAM Sections
...
Allows sections (and labels within) to be defined that correspond to the Game Boy’s Object Attributes Memory.
2017-03-10 22:18:14 +00:00
Anthony J. Bentley
eb4bbb3e0b
Update mapfile code to support new section types.
...
From Antonio Niño Díaz.
2015-02-22 03:52:28 -07:00
stag019
116569f54d
Fix for mapfiles and symfiles. Before, you couldn't define a mapfile unless you also defined a symfile. If you did, it would segfault.
2015-01-01 01:20:29 -05:00
Anthony J. Bentley
0d07caba60
Remove inconsistent version numbering.
2014-09-25 20:56:15 -06:00
Anthony J. Bentley
d661b3a532
Now that we replace missing libc functions, switch back to err().
2014-09-24 02:50:39 -06:00
Anthony J. Bentley
7770827cce
Redefine consistent names for section types, and document the changes.
2013-07-31 22:14:31 -06:00
Anthony J. Bentley
da19380cc4
Add a new WRAMX section type, for banked (CGB) WRAM sections.
2013-06-19 21:19:51 -06:00
Anthony J. Bentley
6579743410
Add support for 8 MiB ROMs, the largest size possible with MBC5.
2012-12-26 21:41:47 -07:00
Anthony J. Bentley
5d6559f15f
Remove nonstandard <err.h>.
...
This provides some really nice functions, but does not exist in some
environments (particularly MinGW).
2011-12-02 01:23:23 -07:00
Anthony J. Bentley
b1a2c664a9
Revert use of system exit codes.
...
While well‐intentioned, in practice this hurts portability and
really, nobody checks the return codes anyway.
2011-06-04 21:33:03 -06:00
bentley
7293da9084
fix some error messages: err() instead of errx(strerror())
2010-02-17 18:28:03 -07:00
bentley
1c8b31ca1d
fix compile error
...
stupid bug, printed % instead of %s
2010-02-04 23:16:38 -07:00
bentley
02ba30f8e0
rgblink: improve file open error messages
2010-01-18 16:47:08 -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
1202c6b459
minor: fix implicit declaration warning
2010-01-15 11:04:00 -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
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
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
3c82b1ae03
Fixed warnings and some style issues
...
Signed-off-by: Vegard Nossum <vegard.nossum@gmail.com >
2009-06-11 08:51:55 +02:00
Vegard Nossum
b6c749ffbd
Run `indent' on the whole tree
...
Can't indent the .y files yet, they need special treatment.
Signed-off-by: Vegard Nossum <vegard.nossum@gmail.com >
2009-06-11 07:59:46 +02:00
Vegard Nossum
94fad97aed
Switch line terminators from CRLF to LF
...
Argh, that obnoxious platform again... ;-)
Signed-off-by: Vegard Nossum <vegard.nossum@gmail.com >
2009-06-11 07:32:12 +02:00
Vegard Nossum
b53e170781
Make all file names lowercase
...
This fixes a zip/platform artifact.
Signed-off-by: Vegard Nossum <vegard.nossum@gmail.com >
2009-06-11 06:25:27 +02:00