mirror of
https://github.com/holub/mame
synced 2025-06-09 06:13:04 +03:00
nltool: break up resistor arrays into individual resistors (#11569)
This commit is contained in:
parent
4654a36abc
commit
5ebfd350d0
@ -525,6 +525,17 @@ void nl_convert_spice_t::process_line(const pstring &line)
|
|||||||
add_term(tt[2], tt[0] + ".2");
|
add_term(tt[2], tt[0] + ".2");
|
||||||
add_term(tt[3], tt[0] + ".3");
|
add_term(tt[3], tt[0] + ".3");
|
||||||
}
|
}
|
||||||
|
else if (plib::startsWith(tt[0], "RA"))
|
||||||
|
{
|
||||||
|
val = get_sp_val(tt.back());
|
||||||
|
for( unsigned int res = 2; res < tt.size(); res++)
|
||||||
|
{
|
||||||
|
pstring devname = plib::pfmt("{}.{}")(tt[0], res);
|
||||||
|
add_device("RES", devname, val);
|
||||||
|
add_term(tt[1], devname);
|
||||||
|
add_term(tt[res], devname);
|
||||||
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
val = get_sp_val(tt[3]);
|
val = get_sp_val(tt[3]);
|
||||||
|
Loading…
Reference in New Issue
Block a user