It is currently Wed Oct 16, 2019 12:31 am

All times are UTC - 7 hours





Post new topic Reply to topic  [ 19 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: DevSound discussion
PostPosted: Fri Mar 01, 2019 4:40 am 
Offline
User avatar

Joined: Fri Jan 04, 2019 5:31 pm
Posts: 42
Location: France, right of a pile of consoles
I have a nearly-finished DevSound refactor that uses macros to avoid duplicating code between handling each channel - it's not complete because I can't wrap my head around some details in CH4, and DevEd is busy so I'm help-less (pun intended). I can publish it here, if there's interest.

_________________
The French Lord of Laziness (and a huge Legend of Zelda fan)
https://github.com/ISSOtm
ASMu is laifu <3


Top
 Profile  
 
 Post subject: Re: DevSound discussion
PostPosted: Fri Mar 01, 2019 10:54 am 
Offline
User avatar

Joined: Fri May 08, 2015 7:17 pm
Posts: 2574
Location: DIGDUG
Quote:
macros


Maybe I'm misunderstanding your use of "macro", but to me, a macro is a compiler/assembler pattern that will ultimately assemble to a LARGER binary.

Maybe you mean something more like a subroutine of common code. That would reduce code size?

Or maybe just using macros to make the source code easier to read. ?

_________________
nesdoug.com -- blog/tutorial on programming for the NES


Top
 Profile  
 
 Post subject: Re: DevSound discussion
PostPosted: Fri Mar 01, 2019 1:39 pm 
Offline

Joined: Sun Sep 19, 2004 11:12 pm
Posts: 21634
Location: NE Indiana, USA (NTSC)
As I understand nullsleep's tutorial, "macros" in MML mean the same thing as "sequences" in FamiTracker. They're essentially envelopes, which MML assigns directly to a channel but FT binds to an instrument.

_________________
Pin Eight | Twitter | GitHub | Patreon


Top
 Profile  
 
 Post subject: Re: DevSound discussion
PostPosted: Sun Mar 03, 2019 5:06 pm 
Offline
User avatar

Joined: Fri Jan 04, 2019 5:31 pm
Posts: 42
Location: France, right of a pile of consoles
dougeff wrote:
Or maybe just using macros to make the source code easier to read. ?

The goal was to deduplicate code without increasing runtime costs, yes. Basically, all the channels share some code (mainly, the command reader and processor), so I basically made a giant `update_channel` ASM macro.

_________________
The French Lord of Laziness (and a huge Legend of Zelda fan)
https://github.com/ISSOtm
ASMu is laifu <3


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 19 posts ]  Go to page Previous  1, 2

All times are UTC - 7 hours


Who is online

Users browsing this forum: No registered users and 6 guests


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

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group