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 > Compiler Internals > [solved] no bug in fasmg|syntax updated

Thread Post new topic Reply to topic

Joined: 24 Mar 2012
Posts: 148
Location: Russian Federation, Sochi

[solved] no bug in fasmg|syntax updated

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

start25.12.2017 12:23:08,52
source fileC:\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
Processedformat PE GUI 4.0
Errorinvalid argument.
finish25.12.2017 12:23:08,64

with fasmg version g.hw7gf

start25.12.2017 12:46:16,16
source fileC:\Users\NikiforovPM\Desktop\Ќ®ў п Ї ЇЄ \EXAMPLES_G\x86\Win\x86\fromMASM32\AniWindow\withDIALOG.asm
flat assembler  version g.hw7gf
4 passes0.3 seconds3584 bytes.
finish25.12.2017 12:46:16,54

Filename: Новая папка.zip
Filesize: 1.03 MB
Downloaded: 23 Time(s)

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

Last edited by ProMiNick on 25 Dec 2017, 11:31; edited 1 time in total
Post 25 Dec 2017, 09:18
View user's profile Send private message Send e-mail Reply with quote
Tomasz Grysztar
Assembly Artist

Joined: 16 Jun 2003
Posts: 6824
Location: Kraków, Poland

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

Main index   Download   Documentation   Examples   Message board
Copyright © 2004-2018, Tomasz Grysztar.
Powered by rwasa.