Having trouble assembling with WLA DX (Again)

Discussion of hardware and software development for Super NES and Super Famicom.

Moderator: Moderators

Forum rules
  • For making cartridges of your Super NES games, see Reproduction.
Post Reply
Esns68
Posts: 5
Joined: Tue Jan 07, 2020 2:03 pm

Having trouble assembling with WLA DX (Again)

Post by Esns68 » Sat Feb 15, 2020 5:48 pm

I apologize for posting another very noobish post, but I'm struggling to get started with SNES Assembly on WLA DX again.
Last post, it was about the programs included in the SNES Starter kit, but I just had to convert the pictures and it worked smoothly.
Right now, I'm trying to study with:
https://en.wikibooks.org/wiki/Super_NES ... n_Tutorial

Copy, pasted and saved the background code, Header, and Initializer, put em all in the same folder and:
Microsoft Windows [Version 10.0.18362.476]
(c) 2019 Microsoft Corporation. All rights reserved.

C:\Users\Bradley>cd C:\Users\Bradley\Desktop\SNES-starterkit

C:\Users\Bradley\Desktop\SNES-starterkit>wla back

C:\Users\Bradley\Desktop\SNES-starterkit>wla-65816 -o back.asm back.obj
Header.inc:12: Unknown directive ".SNESHEADER".

C:\Users\Bradley\Desktop\SNES-starterkit>wlalink -vr temp.prj back.fig
LOAD_FILE_DATA: Could not open file "back.obj".
Could Not Find C:\Users\Bradley\Desktop\SNES-starterkit\back.obj

C:\Users\Bradley\Desktop\SNES-starterkit/

All three are in the file and as said, they're copy and pasted as exactly the same.
asmmm.jpg
Does anyone know what is going on?

Also, I tried a compiled newer version I found online, and after I put all three of those files plus the WLA batch the result there was:

Microsoft Windows [Version 10.0.18362.476]
(c) 2019 Microsoft Corporation. All rights reserved.

C:\Users\Bradley>cd C:\Users\Bradley\Desktop\wla_dx_9.10

C:\Users\Bradley\Desktop\wla_dx_9.10>wla back

C:\Users\Bradley\Desktop\wla_dx_9.10>wla-65816 -o back.asm back.obj
INCLUDE_FILE: Error opening file "back.obj".

C:\Users\Bradley\Desktop\wla_dx_9.10>wlalink -vr temp.prj back.fig

WLALINK GB-Z80/Z80/6502/65C02/6510/65816/6800/6801/6809/8008/8080/HUC6280/SPC-700 WLA Macro Assembler Linker v5.12
Written by Ville Helin in 2000-2008 - In GitHub since 2014: https://github.com/vhelin/wla-dx
$VER: wlalink 5.12 (22.12.2019)

USAGE: wlalink [OPTIONS] <LINK FILE> <OUTPUT FILE>

Options:
-b Program file output
-d Discard unreferenced sections
-i Write list files
-r ROM file output (default)
-s Write also a NO$GMB/NO$SNES symbol file
-S Write also a WLA symbol file
-A Add address-to-line mapping data to WLA symbol file
-v Verbose messages
-L [DIR] Library directory

EXAMPLE: wlalink -d -v -S linkfile linked.rom

Could Not Find C:\Users\Bradley\Desktop\wla_dx_9.10\back.obj

C:\Users\Bradley\Desktop\wla_dx_9.10>

If I can't get WLA going, I was considering trying CC65, or something else.

User avatar
Memblers
Site Admin
Posts: 3833
Joined: Mon Sep 20, 2004 6:04 am
Location: Indianapolis
Contact:

Re: Having trouble assembling with WLA DX (Again)

Post by Memblers » Sun Feb 16, 2020 6:05 am

Esns68 wrote:
Sat Feb 15, 2020 5:48 pm
C:\Users\Bradley\Desktop\wla_dx_9.10>wla-65816 -o back.asm back.obj
INCLUDE_FILE: Error opening file "back.obj".
The -o option is specifying the output file. I think the error is it trying to open the .obj file as source code. Try this instead:
wla-65816 -o back.obj back.asm
In this case, you might want to makes sure that back.asm didn't get overwritten!

Esns68
Posts: 5
Joined: Tue Jan 07, 2020 2:03 pm

Re: Having trouble assembling with WLA DX (Again)

Post by Esns68 » Fri Apr 10, 2020 7:11 am

Sorry it took such a long time to reply. When I got the chance I tried that, and that worked. Thank you so much!

Post Reply