Close

Playing Lsdj songs on a gameboy

A project log for Gameboy Clock

Turn a good old Gameboy into a chiptunes alarm clock

pixjuanPixJuan 06/28/2021 at 18:540 Comments

LSDJ is a popular music tracker for Gameboy, and lsdpack allows playing lsdj songs from a custom application.
The project is developed in assembler using RGBDS while I used another Gameboy SDK for my project, GBDK.
Unfortunately, both SDK are incompatible, they use a different assembler syntax and a different obj file format...

So I tried a quick hack :

SECTION "setup",ROM0[$3000]
dd if=alarm_clock.gb of=alarm_bottom.bin count=24
dd if=lsdpack_test.gb of=lsdpack_top.bin skip=24
cat alarm_bottom.bin > fullrom.gb
cat lsdpack_top.bin >> fullrom.gb 

So far, it doesn't work yet, I will insist a bit more to get my hack working and if it doesn't, I will probably convert my code from C to assembly, it will give me more control for the tight timings lsdpack requires.

Discussions