flat assembler
Message board for the users of flat assembler.
 Home   FAQ   Search   Register 
 Profile   Log in to check your private messages   Log in 
flat assembler > Macroinstructions > structures...

Author
Thread Post new topic Reply to topic
Azagaros



Joined: 18 Jan 2013
Posts: 14
structures...
trying to understand why this code does not compile...

Code:

struc openfilet
      label . : qword ;the line that bombs 
       filesector rd 1
       fileleft   rd 1
end struc




It is reporting unexpected characters and this idea was taken straight out of the docs.

Any help would be appreciated.
Post 11 Jul 2017, 15:20
View user's profile Send private message ICQ Number Reply with quote
Tomasz Grysztar
Assembly Artist


Joined: 16 Jun 2003
Posts: 6513
Location: Kraków, Poland
This is fasm g syntax, and you are probably trying to assemble it with fasm 1. For fasm 1 it should look like:

Code:
struc openfilet
{
      label . : qword ;the line that bombs  
       filesector rd 1 
       fileleft   rd 1 
}

Post 11 Jul 2017, 20:10
View user's profile Send private message Visit poster's website Reply with quote
Azagaros



Joined: 18 Jan 2013
Posts: 14
I was following the documentation, which if new syntax is does not match fasm 1.. the one that is available for download I was just using the fasm one stuff...

Fix the documentation so things match... part of creating tools..
Post 11 Jul 2017, 20:30
View user's profile Send private message ICQ Number Reply with quote
Tomasz Grysztar
Assembly Artist


Joined: 16 Jun 2003
Posts: 6513
Location: Kraków, Poland
The documentation for fasm 1 is available here: https://flatassembler.net/docs.php?article=manual
Please make sure the documentation you use matches the tool you use. fasm 1 and fasm g are different products.
Post 11 Jul 2017, 20:42
View user's profile Send private message Visit poster's website Reply with quote
Azagaros



Joined: 18 Jan 2013
Posts: 14
Trying to keep the syntaxes straight is going to be interesting since there is not keyword list for the macro engine of either. It is evolving and frustrating to get through the documentation. Current idea appears to be part of fasmg but is there a fasm equivalent? Search engines are not helping.

I was enjoying the basic editor that shipped with fasm. So far the editor tools for fasmg are lack luster. Trusty text editors or maybe Notepad++ may have to do..
Post 11 Jul 2017, 20:59
View user's profile Send private message ICQ Number Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >

Forum Rules:
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 vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2005 phpBB Group.

Main index   Download   Documentation   Examples   Message board
Copyright © 2004-2016, Tomasz Grysztar.