I attached some fasm source, it assembles ok but it crashs.

Its ment to be a commandline mp3 player...

eg. mp3 c:\test.mp3

i think i have it pretty close ot working. this is my first asm project.

Any help would be more welcome!
Posted on 2003-05-18 11:21:31 by xxNelix
I don't know if it's your case, but if you use some non api functions (maybe printf or scanf, check the c routines) you could need to correct by yourself the stack pointer register ebp:


This is for wsprintf.. wher after calling it need an add esp,12

Unlike other Windows functions, wsprintf uses the C calling convention (_cdecl), rather than the Pascal calling convention. As a result, it is the responsibility of the calling process to pop arguments off the stack, and arguments are pushed on the stack from right to left. In C-language modules, the C compiler performs this task.

Regards,
B7
Posted on 2003-05-19 02:26:31 by Bit7