VOGONS


First post, by magno

User metadata
Rank Newbie
Rank
Newbie

Hello everybody,

I'm new in this forum, so I'll introduce myself. I'm magno, an spanish SNES fan who has been for more than 10 years translating SNES RPG games into spanish for fun. I've programmed myself a lot of tools to help in the process of translation and ASM code compilation.

In fact, my question is due to some ols SNES compilers which don't run on W7 x64 anymore. I installed DOSBox to make my X816.exe compiler run but I can't pass the source code filename parameter to it.

The commandline I used so far in Windows XP was:

x816.exe -l -$ FF6.asm

And now in W7 x64, I want to use DOSBox to run that same program, so my commandline is:

dosbox.exe "c:\SNES\ff6\b.insertor\x816.exe -l -$ FF6.asm" -c "cycles=max" -noconsole

Although it doesn't work because of "-$ -l FF6.asm" parameters to x816.exe. However, this does work:

dosbox.exe "c:\SNES\ff6\b.insertor\x816.exe " -c "cycles=max" -noconsole

But x186.exe doesn't compile anything since no input asm code is defined.

Can somebody help me, please? I need to pass some arguments to the DOS program executed from DOSBox command line. If there was some way to do it, my next step would be to create a .bat to compile any source code passing arguments to the .BAT, like this:

X816.bat FF6.asm

And the .bat would look like this:

dosbox.exe "c:\SNES\ff6\b.insertor\x816.exe -l -$ %1 " -c "cycles=max" -noconsole

would this be possible?

Regards!

Reply 1 of 2, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

use more -c commands
like

-c "cycles=max" -c "mount  c c:\SNES\ff6\b.insertor" -c "c:" -c "x816.exe -l -$ %1" -c exit

Water flows down the stream
How to ask questions the smart way!

Reply 2 of 2, by magno

User metadata
Rank Newbie
Rank
Newbie
Qbix wrote:
use more -c commands like […]
Show full quote

use more -c commands
like

-c "cycles=max" -c "mount  c c:\SNES\ff6\b.insertor" -c "c:" -c "x816.exe -l -$ %1" -c exit

It works! Your solution is so obvious that I'm a bit ashamed... 😊 I've been for more than 6 hours to get the solution and it was simpler that I could imagine!

Thanks for your help!