flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
rugxulo 28 Sep 2005, 20:19
I agree that there should be compatibility macros (for converting from other assemblers) included in Fasm (like what A86 does with COMPAT.8 but obviously, uh, better).
|
|||
![]() |
|
Remy Vincent 03 Oct 2005, 09:11
I remember that as long as I don't need macros, i don't want to know anything about it because it's so complex... and a separate package Some_macros.zip is frustrating for those who want too learn many many things about macros... and also fristrating if macros are too complex for you... I can only learn macros talking and talking with someone else...
- "why this result?" - "because... blah blah... - "Are you sure" ?... - "Yes this macro works like that, ... blah blah..." ----- STOP DAMAGING YOUR BRAIN LEARNING MACROS ALL ALONE!! ----- _________________ Groups lower your IQ |
|||
![]() |
|
Raedwulf 07 Oct 2005, 07:08
Remy Vincent wrote: I remember that as long as I don't need macros, i don't want to know anything about it because it's so complex... and a separate package Some_macros.zip is frustrating for those who want too learn many many things about macros... and also fristrating if macros are too complex for you... I can only learn macros talking and talking with someone else... Macros aren't that bad. I don't use macros because I use both masm and fasm ...and need to port between them both. But actually macros are exceptionally useful after you have learnt what the macros do. Basically my excuse is that I don't have the time to learn how to write them ![]() I however tend to use assembly in conjunction with a high level language so I survive without macros. If you are however a pure asm programmer - macros are essential for quickly developing large projects with the exception of perhaps FASM itself - but Tomasz is one of a kind ![]() _________________ Raedwulf |
|||
![]() |
|
rugxulo 08 Oct 2005, 07:13
Switching between assemblers does usually throw a wrench in any plans for macros (although FASM can fake it: struc, dup, endm, comment, irp, NASM's %macro, proc, etc.). I don't usually use macros. However, one of the nicest features of FASM is the ability to define a macro for, say, XCHG, and use it instead of the normal machine code.
I read recently an alternative to XCHG (on this message board), which you can try out: ![]() Code: macro xchg a,b { xor a,b xor b,a xor a,b } |
|||
![]() |
|
chris 25 Jan 2006, 07:38
from my old discrete math knowledge:
a=a^b (*) b=b^(a^b)=a (**) a=(a^b)^a=b ------------------------------------------- (*) ^ denotes xor (**) a^b=b^a - commutative (a^b)^c=a^(b^c) - associative a^a=0 - nilpotent 0^a=a - 0 is the identity |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.