Page 1 of 1
Something with understanding WLA-DX...
Posted: Mon Sep 07, 2015 9:35 am
by Nitroman

Pretty much what picture says. Doing everything said in the tutors ends up with this. Experiments didn't help either.
Doing script on script, simply moving asm-file icon to wladx shell script icon, all the same. Where did I gone wrong?
Re: Something with understanding WLA-DX...
Posted: Mon Sep 07, 2015 9:44 am
by Khaz
Okay, at first glance: It's trying to open the file "First.asm.asm".
Try opening a command prompt, going to "F:\SNESASM\First\", and then just type in "wla first", rather than "wla first.asm". I'm guessing it won't work if you just try to drag your .asm file into WLA like you would with a more sophisticated windows program.
EDIT: What I wrote above will only work if you have the file "wla.bat" there as well. I use that rather than trying to run wla-65816 directly.
Re: Something with understanding WLA-DX...
Posted: Mon Sep 07, 2015 9:54 am
by Nitroman
Didn't work, same thing. Looks like it cant even produce an obj file.
Re: Something with understanding WLA-DX...
Posted: Mon Sep 07, 2015 9:56 am
by Khaz
Nitroman wrote:Didn't work, same thing. Looks like it cant even produce an obj file.
Did it give you a slightly different error this time? If you followed my instructions (typing "wla first") then I'd be interested to see exactly what it said in response. Maybe another screenshot?
Re: Something with understanding WLA-DX...
Posted: Mon Sep 07, 2015 10:01 am
by Nitroman

More like it's some error in a wla.bat script sitting long time, but not sure.
Re: Something with understanding WLA-DX...
Posted: Mon Sep 07, 2015 10:23 am
by Khaz
Okay, well, that is odd. From the looks of things it had no problem creating the .obj file, but then when it tries to link it it doesn't find the file. Perhaps because the first step is creating "First.obj" and then the next step is trying to find "temp.obj".
Sounds like a problem with your "wla.bat" file to me - I think some of the ones included in the tutorials were a bit screwed up. Could you open wla.bat in notepad or something, copy the text and paste it here so I can confirm?
Here's what mine looks like:
Code: Select all
@echo off
goto continue
Notes:
to compile EXAMPLE.ASM ---> EXAMPLE.SMC
from the command prompt type: wla EXAMPLE
:continue
echo [objects] > temp.prj
echo %1.obj >> temp.prj
echo on
wla-65816 -o %1.asm %1.obj
wlalink -vr temp.prj %1.smc
@echo off
del %1.obj
del temp.prj
Re: Something with understanding WLA-DX...
Posted: Mon Sep 07, 2015 10:37 am
by Nitroman
This one is fine while using command line. Thanks a heap.
Re: Something with understanding WLA-DX...
Posted: Mon Sep 07, 2015 10:38 am
by nicklausw
wlalink takes a linkfile, not an object file.
Make a file called linkfile with contents:
And when executing wlalink, do:
wlalink -vr linkfile First.smc
EDIT: Khaz beat me to it.