Skip to content

4.8.0

Latest

Choose a tag to compare

@alekmaul alekmaul released this 26 Nov 05:23
55a2ca8

Maintenance release: compiler and library fixes
Add a way to know when a music is over
smconv and constify rewritten in C.

Rebuild your projects after updating: the C library (libc) and the sound driver changed.

Compiler (816-tcc)

  • **&& and || could take the wrong branch.
  • A pointer is null only if its bank is 0 too. $7F:0000 was seen as NULL by if (p), !p, p == NULL and sprintf("%s")
  • 816-opt: fixed a peephole rule that could reorder two stores before an instruction that reads the accumulator.

Sound (SNESMOD)

  • New spcSetMusicLoop(u8 loop): 0 plays the next module once and stops at its end, 1 (default) restarts it from the beginning as before.
  • New u8 spcIsMusicPlaying(void): 1 from spcPlay/spcResumeMusic until the module is stopped, paused or has ended.

Library

  • initMouse returned with rts instead of rtl (#353).
  • Variable-width font text was drawn on the wrong line (#355).

Tools

  • tmx2snes: .tmj maps saved by Tiled 1.12 no longer fail with "Cannot load map" (#341).
  • constify: rewritten in C.
  • smconv: rewritten in C.
  • constify and smconv use the same command line parser as gfx4snes (-h for help).