mirror of
https://github.com/NishiOwO/JWasm.git
synced 2025-04-22 01:04:39 +00:00
25 lines
450 B
NASM
25 lines
450 B
NASM
|
|
;--- expansion of text macros and macro functions
|
|
;--- inside quoted strings (expansion operator at pos 0)
|
|
|
|
.286
|
|
.MODEL small
|
|
.data
|
|
|
|
TM1 equ <___>
|
|
MF1 macro
|
|
exitm <###>
|
|
endm
|
|
|
|
% db "&TM1'&TM1" ;both equates are expanded
|
|
% db '&TM1"TM1&'
|
|
% db "TM1&'TM1&"
|
|
% db '&TM1"TM1' ;the second is NOT expanded
|
|
|
|
% db "&MF1()'&MF1()"
|
|
% db '&MF1()"MF1()&'
|
|
% db "MF1()&'MF1()&"
|
|
% db '&MF1()"MF1()' ;the second is NOT expanded
|
|
|
|
end
|