v1.9
What's New
This release mainly includes numerous improvements to the BASIC compiler. Which includes a new constant folding mechanism, enhancements to macros - and leveraging these features - optimizations in expression evaluation, and conditional compilation directives as #if ... #else if ... #else ... #end if allow static determination of which code participates in compilation. The new #message ..., #warn ..., and #error ... diagnostic directives help provide custom compile-time feedbacks. It also includes enhanced for, while, and repeat loops to support more flexible single-line syntax. bankof(lbl) and addressof(lbl) now support code labels as arguments. This update also contains other feature improvements and bug fixes.
Official Kernels
This page contains official kernels that were not bundled into the binary distribution. See the official external kernels in the "Assets" section below.
SFC Mouse Kernel
This kernel is integrated with an SFC/SNES mouse driver, and enables using it as the input hardware of the touch APIs. This requires the SGB adapter to bridge between the ROM software and the SFC/SNES hardware.
To use this feature, the "SGB Features" in a project's property should be turned on. Then no special coding is required.
To debug this function, use an SFC/SNES with plugged SGB and peripheral mouse, or find some emulator like Mesen that supports mouse.
Speech Synthesizer Kernel
This kernel implements a realtime speech synthesizer that outputs gibberish voice on Game Boy.
The module uses the second square channel (the NR2y registers) for audio output. It was created primarily with English scenarios in mind. Thanks to its gibberish style, it also works well with non-English text, and you can write text for other languages based on English spelling-pronunciation rules.
The APIs are implemented as extra native functions, see the usages as follows:
' Setup the speech options, parameters for volume, speed, and pitch respectively.
call tune 14, 7, 100
' Speak something.
call say "Hello World!"
' Stop speaking.
call hush