Structures: error when overriding DUPs with strings

Started by Yuri, August 11, 2009, 06:18:34 AM

Previous topic - Next topic

Yuri

Hi Jeremy!

The problem occurs when the string is placed on the next line after the continuation mark "\". For example:

Files STRUCT
InFile   DB 260 DUP 0
InSize   DD 0
OutFile  DB 260 DUP 0
OutSize  DD 0
ENDS


DATA SECTION

Sample Files  <"C:\temp.txt", 1024, \
                "D:\test.txt", 1024>


CODE SECTION

Start:
xor eax,eax
ret


Trying to compile this, I get the following error:
Quote
GoAsm.Exe Version 0.56.7 - Copyright Jeremy Gordon 2001/9 - JG@JGnet.co.uk

Error!
Line 11 of assembler source file (struct.asm):-
Faulty quoted string
DB

OBJ file not made

However, if the first element on the next line is a number, all goes well. Like this:

Sample Files  <"C:\temp.txt", \
                1024, "D:\test.txt", 1024>


jorgon

Hi Yuri

Thanks for reporting this.

I would propose to add a fix for this to the version of GoAsm which I am working on at the moment, which will incorporate runtime conditionals.

Author of the "Go" tools (GoAsm, GoLink, GoRC, GoBug)

Yuri

Of course, Jeremy, take your time. This is in no case a big problem.

jorgon

Hi Yuri

This has now been fixed in GoAsm (Version 0.56.8).
However, this new version does not yet support runtime conditionals, which I am still working on.


Author of the "Go" tools (GoAsm, GoLink, GoRC, GoBug)