flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > [solved] fasm1: needed mismatch directive |
Author |
|
Tomasz Grysztar 14 Feb 2019, 17:40
I believe this can be macro-emulated in a much simpler way:
Code: macro mismatch statement& { local F F equ 1 match statement \{ F equ 0 \} match F,F \{ rept F \} } Code: macro mismatch line& { local buffer,E,F define buffer line define F match e {, buffer \{ define E e define F 1 { \} match e { f, buffer \{ define E e define F 1 { f \} match , F \{ E equ buffer define F 1 \} match e, E \{ match e \\{ F equ 0*F \\} \} match f, F \{ rept f \} } |
|||
14 Feb 2019, 17:40 |
|
ProMiNick 14 Feb 2019, 17:54
Tomasz, thanks. I don`t belived that it was possible via macros.
As allways thou could suprise me. |
|||
14 Feb 2019, 17:54 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.