12. Files¶
12.1. tests¶
The main purpose of the files in the tests directory is to test that WLA
and WLALINK can assemble and link the tiny project correctly. You can also
take a look at the code and syntax in the files, but beware: if you run the
rom files you probably don’t see anything on screen.
include directory under gb-z80 could be very useful as the six include
files there have all the Game Boy hardware register address and memory
definitions you could ever need and more.
include/megadrive contains Sega Mega Drive/Genesis and Sega CD register
definitions and helper macros for the 68000 side, Z80 side, VDP, Sega CD main
CPU, Sega CD sub CPU, J-Cart and common serial EEPROM wiring.
include/sega32x contains Sega 32X register definitions and helper macros for
the Mega Drive 68000 side and the 32X SH-2 side. 68k.inc describes the
68000-visible adapter registers at $A15100 and friends, sh2.inc describes
the SH-2-visible Mars registers and SH-2 internal register constants, and
macros.inc contains shared video/color constants.
include/pcengine contains PC Engine / TurboGrafx-16 HuC6280 hardware
register definitions, vector constants and small CPU helper macros.
include/lynx contains Atari Lynx 65C02 hardware base definitions, vector
constants and small CPU helper macros.
include/agon contains Agon MOS helper macros for eZ80 binaries, including
the standard MOS executable name and header bytes.
12.2. tests/gb-z80/lib¶
This folder holds few very useful libraries for you to use in your Game Boy
projects. Instead of reinventing the wheel, use the stuff found in here.
Remember to compile the libraries right after you’ve installed WLA by
executing make in the lib directory.
12.3. memorymaps¶
Here you can find default memory maps (see .MEMORYMAP) for various computers
and video game consoles.
The Mega Drive/Genesis maps include the normal 68000 and Z80 maps, SSF banking, serial EEPROM cartridges, J-Cart cartridges, lock-on cartridges, and Sega CD main/sub CPU boot program layouts.
The Sega 32X maps include md32x68k.i for 68000-side boot/hot-start code and
sh232x.i for SH-2-side cartridge ROM, SDRAM, Mars registers, palette, and
framebuffer windows.
The Agon MOS flat eZ80 map is agon_mos.i. The PC Engine map is
pcengine.i. The Atari Lynx flat 65C02 map is lynx.i.