flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > assume macro weirdness

Author
Thread Post new topic Reply to topic
slacker116



Joined: 18 May 2007
Posts: 12
slacker116
I was just noticing that after two assumes that fasm gives an error

example:
Code:
assume eax:Point
assume eax:Point
assume eax:Point
    

the last assume gives you the error "Invalid Name" does anyone know
why its doing this?
Post 01 Feb 2008, 06:39
View user's profile Send private message Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4633
Location: Argentina
LocoDelAssembly
Yes Confused and it doesn't matter if the structs are the same or not

Example:
Code:
include 'win32ax.inc'
include 'macro/masm.inc'

struct Point
  x dd ?
  y dd ?
ends
struct Square Point
  side dd ?
ends
struct Circle Point
  radius dd ?
ends

start:

assume eax:Point
assume eax:Square
assume eax:Circle ; Fails here with "Invalid Name"

.end start    
Post 01 Feb 2008, 14:53
View user's profile Send private message Reply with quote
slacker116



Joined: 18 May 2007
Posts: 12
slacker116
is there any way to 'delete' the last assume? or anything of the like?
Post 01 Feb 2008, 15:45
View user's profile Send private message Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4633
Location: Argentina
LocoDelAssembly
assume reg:none but that doesn't fix this problem. The problem seems to be that the second run destroys more than it should so the third time when it tries to destroy again something to do that is missing.
Post 01 Feb 2008, 15:51
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17332
Location: In your JS exploiting you and your system
revolution
See here
Post 06 Mar 2008, 15:43
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-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.