summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/netlist/nl_parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/netlist/nl_parser.c')
-rw-r--r--src/emu/netlist/nl_parser.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/emu/netlist/nl_parser.c b/src/emu/netlist/nl_parser.c
index 7edcec684c1..4b6f2f51bbd 100644
--- a/src/emu/netlist/nl_parser.c
+++ b/src/emu/netlist/nl_parser.c
@@ -288,12 +288,20 @@ void parser_t::net_c()
void parser_t::netdev_param()
{
pstring param;
- nl_double val;
param = get_identifier();
require_token(m_tok_comma);
- val = eval_param(get_token());
+ token_t tok = get_token();
+ if (tok.is_type(STRING))
+ {
+ NL_VERBOSE_OUT(("Parser: Param: %s %s\n", param.cstr(), tok.str().cstr()));
+ m_setup.register_param(param, tok.str());
+ }
+ else
+ {
+ nl_double val = eval_param(tok);
NL_VERBOSE_OUT(("Parser: Param: %s %f\n", param.cstr(), val));
m_setup.register_param(param, val);
+ }
require_token(m_tok_param_right);
}