Hello I have been slowly getting my head around writing code for the nes in asembly using nesasm however I am not certain how to include the library and song. If anyone could just give me an example of playing a song through ASM I would be most grateful.

FamiTone2 on this page: https://shiru.untergrund.net/code.shtmlContains full source code for a demo that plays the included songs, as well as software and documents to put your own software in the format FamiTone2 plays.

Edit: If there's a specific step in the readme you don't understand, ask about that specific step.

Right, and you will have to run the music init code (FamiToneInit) and the sfx init code (FamiToneSfxInit) (to set pointers to the start of the music / sfx) at the start of your program , then play a song / sfx with the FamiToneMusicPlay and FamiToneSfxPlay subroutines.

One per frame call FamiToneUpdate, to update the music (run the music engine).

Who is online

Users browsing this forum: No registered users and 2 guests

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum