flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > [suggestion] allow "defined" operator for @b and @

Author
Thread Post new topic Reply to topic
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 26 Jun 2007, 15:19
This would solve problem with @@f, @@b macros i am writing right now. I think it would be good to allow using "defined" operator for @b and @f symbols. It will return true, only if preceding/following anonymous label exists.

Code:
macro @@
{
  local next, prev  

  if defined @b
    @@B = @b
  end if

  @@B equ prev

  @@:

  if defined @f
    @@F = @f
  end if

  @@F equ next
}    
Post 26 Jun 2007, 15:19
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8351
Location: Kraków, Poland
Tomasz Grysztar 05 Aug 2007, 16:14
Done in 1.67.22 (coming soon).
Post 05 Aug 2007, 16:14
View user's profile Send private message Visit poster's website Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4330
Location: Now
edfed 13 Oct 2007, 12:52
Code:
@@@:
@@:
jmp @f
jmp @@f
jmp @@b
jmp @b
@@:
@@@:
    

it doesn't compiles
with version 1.67.23
can this be implemented in fasm without needing of a macro?


Last edited by edfed on 20 Oct 2007, 14:03; edited 1 time in total
Post 13 Oct 2007, 12:52
View user's profile Send private message Visit poster's website Reply with quote
rugxulo



Joined: 09 Aug 2005
Posts: 2341
Location: Usono (aka, USA)
rugxulo 13 Oct 2007, 21:49
edfed, I could be wrong but I only think Tomasz implemented the ability for the keyword defined to support @f or @b.
Post 13 Oct 2007, 21:49
View user's profile Send private message Visit poster's website Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4624
Location: Argentina
LocoDelAssembly 13 Oct 2007, 21:54
Yep, but edfed is requesting an extra feature, not reporting a bug Wink

BTW, this was discussed already and even there are some macros that emulates this feature. Search for it.

[edit]Don't search, I found it. http://board.flatassembler.net/topic.php?p=35891#35891 [/edit]
Post 13 Oct 2007, 21:54
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.