__REG_XXXXspecial variables. The optimizer automatically transforms
set_win_data()function so that it is consistent with other functions. This change requires adding
0x80to the first parameter of this function call in existing programs.
cls()function to the standard output library (reported by Helmut Schoettner).
-int16) to specify the size of the integer type (default is 8 bits, which produces shorter and faster code).
reset()function to reset the GB (restart the program's execution).
_cputhat indicated the CPU of the machine on which the code is running (GB, Pocket GB, Color GB).
paint.c) illustrating this library.
LD (HLI),A LD (HLD),A LD A,(HLI) LD A,(HLD) ADD SP,offset LDHL SP,offset
gb-dtmfexample so that it compiles on DOS.
comm.cexample which illustrates how to use communication routines.
Xis the name of the program, which can contain up to 16 characters in quotes, including spaces; on Unix, depending on your shell, you must add backslashes before quotes and spaces like in
hiramcpy()functions). The compiler now automatically generates two symbol for the start and the end of each function, named
Xis the name of the function). This enables to calculate the length of a function when copying it to RAM.
ram_fn.cexample which illustrates how to copy functions to RAM and HIRAM.
irq.cexample which illustrates how to install interrupt handlers.
switch_bank()function has been renamed to
banks.cexample has been updated. The flags for generating multiple bank images have been modified.
#is the address of the sprite ram). The sprite ram address must begin at an address multiple of 0x100, and is 0xA0 bytes long.
delay()function so that it takes a long parameter. It can be used to wait between 1 and 65536 milliseconds (0 = 65536). The
pause()function has been removed.
galaxy.c) has been added. It is the C version of the
sprite.chas been removed.
#is the address of the stack pointer).
show_bkg()) have been changed into macros (e.g.
delay()function waits exactly 1 millisecond, and the
pause()waits 256 milliseconds.
lib\gb.libon DOS) text file contains a list of modules in which to look for undefined symbols. The linker will parse this file, and link your code with the required modules only. The
stdiolibrary has been split in several object files, and only necessary modules will be added to your code, thus reducing its size.
-Wo-lccdir=GBDK-DIRflag when invoking lcc.
\GBDK-2.0directory on DOS machines.
intis 8 bits.
longis 16 bits.