flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > include statement problem

Author
Thread Post new topic Reply to topic
TdZ



Joined: 27 Jan 2005
Posts: 6
TdZ 27 Jan 2005, 16:55
org 100h
include b.txt

mov ax,4c00h
int 21h

these statements will get infinite loop

org 100h
include "b.txt"

mov ax,4c00h
int 21h

and with string delimitor, it works

i assemble with 1.57v
Post 27 Jan 2005, 16:55
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8357
Location: Kraków, Poland
Tomasz Grysztar 27 Jan 2005, 22:13
It should show an "invalid argument" error - and so does when I test it.
Post 27 Jan 2005, 22:13
View user's profile Send private message Visit poster's website Reply with quote
TdZ



Joined: 27 Jan 2005
Posts: 6
TdZ 28 Jan 2005, 18:39
that's weird, I got dead loop on my machine
Post 28 Jan 2005, 18:39
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8357
Location: Kraków, Poland
Tomasz Grysztar 28 Jan 2005, 18:47
What system and which package are you using?
Post 28 Jan 2005, 18:47
View user's profile Send private message Visit poster's website Reply with quote
TdZ



Joined: 27 Jan 2005
Posts: 6
TdZ 29 Jan 2005, 09:05
winxp sp2
package is this version

the included file can be anything, including empty file. once including the delimitor, it works fine, otherwise always got dead loop. I have msn: tdz_canton@hotmail.com, you can add me

Visit http://flatassembler.net/ for more information

version 1.57
[19-01-2005]
------------
[-] cleanups and bugfixes

version 1.56
[27-09-2004]
------------
[+] another small update of documentation
[-] internals cleanup
Post 29 Jan 2005, 09:05
View user's profile Send private message Reply with quote
TdZ



Joined: 27 Jan 2005
Posts: 6
TdZ 29 Jan 2005, 13:52
works fine in v1.56, should be cleanup problem, i think

D:\Dev\ASM\Token>fasm a.txt a
flat assembler version 1.56
a.txt [1]:
include b.txt
error: invalid argument.
Post 29 Jan 2005, 13:52
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8357
Location: Kraków, Poland
Tomasz Grysztar 29 Jan 2005, 14:56
I'm still not able to reproduce it Confused
Post 29 Jan 2005, 14:56
View user's profile Send private message Visit poster's website Reply with quote
TdZ



Joined: 27 Jan 2005
Posts: 6
TdZ 29 Jan 2005, 17:50
did you modify the include statement analysis part? or somewhere could affect the operation of include operation?
Post 29 Jan 2005, 17:50
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8357
Location: Kraków, Poland
Tomasz Grysztar 29 Jan 2005, 18:20
More probably something is happening during the error message displaying...
Post 29 Jan 2005, 18:20
View user's profile Send private message Visit poster's website Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8357
Location: Kraków, Poland
Tomasz Grysztar 31 Jan 2005, 21:38
When I asked about which package are you using, I meant whether it is DOS, Win32 console, or Win32 GUI version.
Post 31 Jan 2005, 21:38
View user's profile Send private message Visit poster's website Reply with quote
TdZ



Joined: 27 Jan 2005
Posts: 6
TdZ 01 Feb 2005, 17:39
oh, sorry! I just tested it with

fasm 1.56 dos version, filesize 61672, it works fine.

fasm 1.57 dos version(i think), filesize 61664, it doesn't work, i found that the INCLUDE 000000 string seems missed at the end of fasm.exe, but it exists in 1.56

please add a string to the title to indicate which package for later version
Post 01 Feb 2005, 17:39
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-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.