flat assembler
Message board for the users of flat assembler.

Index > Main > File not compiling by fasm

Author
Thread Post new topic Reply to topic
dmitriy566



Joined: 19 Jun 2012
Posts: 27
Location: Saint-Petersburg, Russia
dmitriy566
Hello!
I have fasm 1.67. And i want to adopt NeHe examples for OpenGl to newer version of fasm. When i compile file, fasm says:" star stars rd (num-1) * sizeof.stars
illegal instruction". What's the problem? I see that structure stars is declared in data section as struct. I will thanks for answer.


Description:
Download
Filename: Tut_09.rar
Filesize: 40.19 KB
Downloaded: 177 Time(s)

Post 19 Jun 2012, 14:32
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17284
Location: In your JS exploiting you and your system
revolution
Replace the line with:
Code:
star       stars
       rb      (num-1) * sizeof.stars    
Post 19 Jun 2012, 15:20
View user's profile Send private message Visit poster's website Reply with quote
dmitriy566



Joined: 19 Jun 2012
Posts: 27
Location: Saint-Petersburg, Russia
dmitriy566
Hello!
If i replace to this i have star stars illegal instruction...
Post 19 Jun 2012, 15:22
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17284
Location: In your JS exploiting you and your system
revolution
Hmm, lots of errors there.

For starters:
Code:
GLfloat    fix dd ;can't use equ here because the struct macro redefines dd
;...
    struct stars
       r dd ? ;must use lower case to allow struct macro to see the definition
       g dd ? ;must use lower case to allow struct macro to see the definition
       b dd ? ;must use lower case to allow struct macro to see the definition    
There are more errors, but you can start with these.
Post 19 Jun 2012, 15:42
View user's profile Send private message Visit poster's website Reply with quote
dmitriy566



Joined: 19 Jun 2012
Posts: 27
Location: Saint-Petersburg, Russia
dmitriy566
Hello!
I fix it. You can download NeHe examples translated to newer version of fasm here: NeHe.rar
Post 25 Jun 2012, 14:37
View user's profile Send private message 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


Copyright © 1999-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.