blob: 56b0d4d16ecf9342ddf039952467a97e2c662011 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
def onmx_formulas(unit, *args):
"""
@usage: MX_FORMULAS(BinFiles...) # deprecated, matrixnet
Create MatrixNet formulas archive
"""
def iter_infos():
for a in args:
if a.endswith('.bin'):
unit.on_mx_bin_to_info([a])
yield a[:-3] + 'info'
else:
yield a
infos = list(iter_infos())
unit.onarchive_asm(['NAME', 'MxFormulas'] + infos)
unit.on_mx_gen_table(infos)
|