macro extend name,pattern,action { macro name expr& \{ match pattern,expr \\{ action
rept 0 \\{\\} rept 1 \\{ name expr \\} \} }
use example:
extend dd, <=lo=,=mid=,=hi =of base*idx-num>,<dd (base and $FFFFFFFF *idx) and $FFFFFFFF-num,(base and $FFFFFFFF *idx) shr 32+(base shr 32 *idx) and $FFFFFFFF,(base shr 32 *idx) shr 32>
extended syntax example
dd lo,mid,hi of 10000000000000000000*10-1 ; match pattern - extended handling
dd lo,mid,hi of 10000000000000000000*100-1
dd lo,mid,hi of 10000000000000000000*1000-1
dd lo,mid,hi of 10000000000000000000*10000-1
dd lo,mid,hi of 10000000000000000000*100000-1
dd lo,mid,hi of 10000000000000000000*1000000-1
dd lo,mid,hi of 10000000000000000000*10000000-1
dd lo,mid,hi of 10000000000000000000*100000000-1
dd lo,mid,hi of 10000000000000000000*1000000000-1
;dd lo,mid,hi of 10000000000000000000*1000000000+1 ; mismatch pattern - dd error
dd -1,-1,-1 ; mismatch pattern - usual handling
in case if that isn`t syntax extend is syntax override:
macro override name,pattern,action { macro name expr& \{ match pattern,expr \\{ action
rept 0 \\{\\} rept 1 \\{ expr mismatch pattern \\} \} }