home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Acorn User 3
/
AUCD3.iso
/
funland
/
emulators
/
gameboy
/
gbdk
/
!GBDK
/
docs
/
Intro
< prev
Wrap
Text File
|
1997-02-18
|
2KB
|
51 lines
Gameboy Development Kit
=======================
The Gameboy Development Kit (GBDK) was put together by Pascal Felber
(felber@di.epfl.ch). With it you can write programs in C and assembler
for use on the various Gameboy emulators, or even a real Gameboy if
you have the necessary hardware. It was ported to RISC OS, with only a
few minor alterations, using GCC and UnixLib.
Usage
-----
The C compiler, assembler and linker can all be used through the lcc
front end, which automates the various stages of compilation and
linking. After running !GBDK, type 'lcc -help' at the command prompt
for a full list of the various switches - some of the more commonly
used ones are described below:
-c compile only (no linking stage)
-Dname define the preprocessor symbol 'name'
-Dname=def define the preprocessor symbol 'name' as 'def'
-o file leave the output in 'file'
-S output assembler source code
Make sure you have allocated at least 1MB to the next slot before
using lcc or it'll complain about a lack of memory. Source files
should be specified as, for example, 'test.c' or 'gblib:stdio.o'
rather than their actual RISC OS filenames (eg 'c.test' or
'gblib:o.stdio').
Examples
--------
The examples directory contains a number of demonstrations. 'sound.c',
'space.s', 'sprite.c' and 'test.c' are Gameboy specific, while the
rest form part of a test suite for the lcc compiler. If you have a
make utility, such as amu, you can build them using the supplied
MakeFile (make sure you have allocated enough space to the next slot
first though). Alternatively, just run the MakeObey file.
More information
----------------
More detailed information, including documentation on the libraries
can be found in the file 'docs.GBDK'.
----------------------------------------------------------------------
Paul Clifford (paul@plasma.demon.co.uk)
February 18 1997