I have a question regarding define directive in preprocessor.
How can I replace/define a string with another string ?
It's about mod operator, some assemblers use % for mod operator.
But % could be used in another context (for defining binary values).
format binary as "p"
define % mod
org 0h
mov al,(labelx+1) % 100h
org 1adfh
labelx:
This example works but is problematic when % used in another context.
I tried to replace the string " % " with one leading and one trailing space but FASM throws error "invalid name".
Does anybody know how to realize this ?