flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
vid 25 Mar 2010, 12:24
AFAIK, FASM can't concatenate two string into single one (string handling is generally one of weak spots of FASM).
|
|||
![]() |
|
revolution 25 Mar 2010, 13:10
Code: first equ 'head' second equ 'body' match xx yy,first second {first equ xx#yy} display first use64 mov rax,first |
|||
![]() |
|
vid 25 Mar 2010, 13:16
oh... nevermind me reply then
![]() |
|||
![]() |
|
revolution 25 Mar 2010, 13:21
If you need it as a macro:
Code: macro concatenate x,y{match xx yy,x y\{x equ xx\#yy\}} first equ 'head' second equ 'body' concatenate first,second display first use64 mov rax,first |
|||
![]() |
|
Madis731 25 Mar 2010, 13:35
But crossing a line isn't possible. For example:
<head> <body> ... here concat wouldn't work. The same problem is with multi-line comments. |
|||
![]() |
|
Z3N 28 Mar 2010, 11:46
revolution wrote:
Great! It's work!!! Big thx!!! _________________ "There will be no more delay!" (Revelation 10) |
|||
![]() |
|
Tyler 28 Mar 2010, 12:14
@vid: see http://flatassembler.net/docs.php?article=manual#2.3.3
Scroll until you get to Code: macro jif op1,cond,op2,label { cmp op1,op2 j#cond label } The paragraph below that explains the method revolution used(and a few others). I didn't know about it either ![]() |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.