It is currently Mon Oct 15, 2018 10:23 pm

All times are UTC - 7 hours





Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Sat Aug 18, 2018 8:00 am 
Offline

Joined: Mon Aug 06, 2018 8:13 am
Posts: 5
I've attempted assembling an .obj from my .asm file on two separate operating systems, I'm not getting any output from my assembler. I'm following a pretty basic tutorial which I feel like I am understanding pretty well, however when trying to assemble I'm not seeing any results.

I realize this could be categorized as "Other Retro Dev" stuff, but I figured some of you guys are using wla-6502, and it would operate very similarly. I feel like I'm just noob-ing out and missing something. Here is a photo for a better explanation.


Attachments:
Untitledasm.png
Untitledasm.png [ 199.75 KiB | Viewed 1056 times ]
Top
 Profile  
 
PostPosted: Sat Aug 18, 2018 8:38 am 
Offline
User avatar

Joined: Sun Jan 22, 2012 12:03 pm
Posts: 6875
Location: Canada
Usually when a utility outputs usage information, it's because it couldn't parse the command line you gave it.

In particular you seem to have combined -v and -o into -vo? Maybe just separate those? Some programs accept that kind of flag combining, but this is not a universal behaviour.


Top
 Profile  
 
PostPosted: Sat Aug 18, 2018 9:08 am 
Offline

Joined: Mon Aug 06, 2018 8:13 am
Posts: 5
I figured out my issue, turns out I was misunderstanding the wording. A ".asm" file is just a text file saved as a ".asm". Not a file ending in .asm. The header and initialization files are included in the first few lines of code in the main .asm's code. (Just keep them in the same directory during assembly)

For example in conjunction with the photograph, I should have been using this:
Double edit:
wla-65816 -vo first.asm first.obj (Wrong)
wla-65816 -v -o first.obj first.asm(Use this example, read replies for explanation)
Sorry, I knew it was something noob.


Last edited by ihugmyself on Mon Aug 27, 2018 8:42 am, edited 3 times in total.

Top
 Profile  
 
PostPosted: Sun Aug 19, 2018 11:55 am 
Offline
Formerly ~J-@D!~
User avatar

Joined: Sun Mar 12, 2006 12:36 am
Posts: 472
Location: Rive nord de Montréal
rainwarrior wrote:
In particular you seem to have combined -v and -o into -vo? Maybe just separate those? Some programs accept that kind of flag combining, but this is not a universal behaviour.

The option grouping is "standard" behavior. In fact, it is a recommended guideline in POSIX (per section 12.2, Utility Syntax Guidelines, guideline 5). As such, it's normal to expect it to work.

It seems in this particular example that the error reporting could be improved. Also, from the understanding of the command-line options, it should rather be invoked like this:
Code:
wla-65816 -vo snes.obj snes.asm

Note the inversion of arguments: that's because snes.obj belongs to the -o flag, whereas snes.asm is the command's operand, which corresponds to <ASM FILE> in the command's help message.

_________________
((λ (x) (x x)) (λ (x) (x x)))


Top
 Profile  
 
PostPosted: Mon Aug 27, 2018 8:37 am 
Offline

Joined: Mon Aug 06, 2018 8:13 am
Posts: 5
Jarhmander wrote:
rainwarrior wrote:
In particular you seem to have combined -v and -o into -vo? Maybe just separate those? Some programs accept that kind of flag combining, but this is not a universal behaviour.

The option grouping is "standard" behavior. In fact, it is a recommended guideline in POSIX (per section 12.2, Utility Syntax Guidelines, guideline 5). As such, it's normal to expect it to work.

It seems in this particular example that the error reporting could be improved. Also, from the understanding of the command-line options, it should rather be invoked like this:
Code:
wla-65816 -vo snes.obj snes.asm

Note the inversion of arguments: that's because snes.obj belongs to the -o flag, whereas snes.asm is the command's operand, which corresponds to <ASM FILE> in the command's help message.

You are exactly correct, thank you for this explanation. I was actually confused as to how it was working backwards!
Turns out the assembler doesn't allow grouped flags. Jarhmander your tip is appreciated, I tried separating them, it works and I feel pretty confident with the flags now.
Much love to you both!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 7 hours


Who is online

Users browsing this forum: Google Adsense [Bot], tokumaru, yaros and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group