Table of Contents

Developing for WonderWitch

The WonderWitch is an official homebrew development environment provided by Qute Corporation.

As the official toolchain is proprietary, Wonderful provides its own toolchain for the platform, allowing use of both BIOS system calls and direct hardware access.

Differences

Limitations

Building programs

.fx files

The traditional way to distribute a WonderWitch program is through a set of one or more Freya-headered executable files, or .fx files. These are created by applying the wf-wwitchtool mkfent tool to an ELF file; however, this tool can be used to add a Freya file header to any file.

mkrom images

As the WonderWitch hardware is expensive and usage of emulators and flash cartridges is more common, particularly on the Western side of the WonderSwan fan community, programs are additionally built as .ws ROM images. These are built based on an open source, clean room reimplementation of the BIOS and OS, therefore they do not constitute copyright infringement.

The wf-wwitchtool mkrom tool can be used to turn any set of files into a ROM image. The default Makefile will include any files in the rom0 subdirectory in addition to the program executable.