flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > [solved] no bug in fasmg|syntax updated

Author
Thread Post new topic Reply to topic
ProMiNick



Joined: 24 Mar 2012
Posts: 798
Location: Russian Federation, Sochi
ProMiNick 25 Dec 2017, 09:18
In Included archive there is test environment worked with fasmg version g.hw7gf and earlier versions.
(I remove from test environment mostly everithing dosn`t relative to problem)
From some version (minimum from g.hxmfv (september)) there is error.
I can`t detect where exactly this error.

To initialize package for unziped folder - used init.bat in it.(it makes FASMG.INI with correct paths)
open fasmw.exe inside package, than open one of examples, than compile it with menu run->fasmg:mkbin (this menu added - only one difference from oficial version)
with replacing fasmg.exe in package with new version than you will get error when you will make same algorithm as described above.

it looks like fasmg incorrect working with paths with .. inside or something like that.

Maybe fasmg syntax slightly upgraded from summer? And I missed that?

with last fasm g version
Code:
start: 25.12.2017 12:23:08,52
source file: C:\Users\NikiforovPM\Desktop\Ќ®ў п Ї ЇЄ \EXAMPLES_G\x86\Win\x86\fromMASM32\AniWindow\withDIALOG.asm
flat assembler  version g.hxmfv
C:\Users\NikiforovPM\Desktop\Новая папка\EXAMPLES_G\x86\Win\x86\fromMASM32\AniWindow\withDIALOG.asm [3]:
        format PE GUI 4.0
Processed: format PE GUI 4.0
Error: invalid argument.
finish: 25.12.2017 12:23:08,64    


with fasmg version g.hw7gf
Code:
start: 25.12.2017 12:46:16,16
source file: C:\Users\NikiforovPM\Desktop\Ќ®ў п Ї ЇЄ \EXAMPLES_G\x86\Win\x86\fromMASM32\AniWindow\withDIALOG.asm
flat assembler  version g.hw7gf
4 passes, 0.3 seconds, 3584 bytes.
finish: 25.12.2017 12:46:16,54    

_________________
I don`t like to refer by "you" to one person.
My soul requires acronim "thou" instead.


Last edited by ProMiNick on 08 Dec 2020, 17:42; edited 2 times in total
Post 25 Dec 2017, 09:18
View user's profile Send private message Send e-mail Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8349
Location: Kraków, Poland
Tomasz Grysztar 25 Dec 2017, 10:39
The FORMAT is now a built-in instruction in fasmg (to allow fasm-compatible FORMAT BINARY AS 'EXT' setting), so if you re-define it as a macro, it cannot be forward referenced. When you use FORMAT before the macro gets defined, the built-in instruction is used instead.

However, the built-in FORMAT has been made to work like the END directive, so you can define sub-macros in its namespace. So a macro named FORMAT?.PE can be forward-referenced, as the built-in FORMAT directive looks for the instructions/macros in the FORMAT? namespace and calls them.

You can see this new method used in the updated headers for Win32/Win64.
Post 25 Dec 2017, 10:39
View user's profile Send private message Visit poster's website 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-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.