here is the thing...
if you can't get through the first post without mentioning keygen's,
then assembly language may not be your cup of tea
when you register for the forum, you confirm that you have read the rules
if you want to play with the big dogs, you have to be able to absorb a lot of documentation
you could have asked for help without mentioning keygen's, at all - DOH
that's your bad, not ours - don't try to turn it back on Vortex and me - lol
as for the difference between the working and non-working code...
with the incomplete code example, we cannot really say what the problem is
i.e., we do not know how "table" and "xmSize" are defined
we can assume that you have included ufmod.inc, so that XM_MEMORY and XM_RESOURCE are defined as equates
here is what i recommend...
create a small example program, using just uFMOD_PlaySong
try not to name it "keygen.asm" :P
attach the entire project so that we don't each have to write a program to offer assistance
by doing that, we can see how you have defined the variables, prototypes, and so on
also - let us know which version of the library you are using