I've modified macros from FASM docs to look like:
macro define_table name,n1,n2 {
label name
repeat (n2-n1+1)
d1 = '0' + (n1+%) shr 4 and $0F
d2 = '0' + (n1+%) and $0F
if (d1 > '9')
d1 = d1 + 'A'-'9'-1
end if
if (d2 > '9')
d2 = d2 + 'A'-'9'-1
end if
dd lbl_#d1#d2
end repeat
}
and wanted to declare jump tables with it using:
define_table jt_name,0,255
expecting to get table:
jt_name:
dd lbl_00
dd lbl_01
...
dd lbl_FE
dd lbl_FF
tell me what i've missed 'cause it's not working
or maybe it's not possible to realize such macros?