flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > Fasm 1.73 I propose status flag for value. |
Author |
|
revolution 11 Dec 2019, 04:24
You can make a variable named chVal.status to hold any value you want.
|
|||
11 Dec 2019, 04:24 |
|
Roman 11 Dec 2019, 06:01
You mean EQU?
|
|||
11 Dec 2019, 06:01 |
|
revolution 11 Dec 2019, 06:09
Code: chVal.status = 1 ;... if chVal.status = 0 display "We should not be here" else if chVal.status = 1 display "Everything is okay" else display "Something is very wrong with this world" end if |
|||
11 Dec 2019, 06:09 |
|
Roman 11 Dec 2019, 09:05
It's not handful!
Always write this big code in some places of code? Macro more be nice! |
|||
11 Dec 2019, 09:05 |
|
revolution 11 Dec 2019, 11:24
Just place the code within your macro.
|
|||
11 Dec 2019, 11:24 |
|
Roman 11 Dec 2019, 17:59
This code not see diferents EQUs.
Mm zval Zval. Status EQU 1 Mm zval ;see as EQU = 2 but not EQU = 1! That is problem I need change dynamicly work mm macro! |
|||
11 Dec 2019, 17:59 |
|
revolution 11 Dec 2019, 18:35
In that case you are mixing EQU with IF, so there is a problem with the different assembly stages seeing different values. Change your EQUs to = and now see if it works for you.
|
|||
11 Dec 2019, 18:35 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.