2007-02-02 10:21:41 -05:00
|
|
|
/* -*-c-*- *********************************************************/
|
|
|
|
/*******************************************************************/
|
|
|
|
/*******************************************************************/
|
|
|
|
/**
|
|
|
|
This file is VM main loop.
|
2008-12-09 02:14:13 -05:00
|
|
|
|
2007-02-02 10:21:41 -05:00
|
|
|
----
|
|
|
|
This file is auto generated by insns2vm.rb
|
|
|
|
DO NOT TOUCH!
|
|
|
|
|
2014-09-14 03:58:25 -04:00
|
|
|
If you want to fix something, you must edit 'insns.def'
|
2007-02-02 10:21:41 -05:00
|
|
|
*/
|
|
|
|
|
2017-08-22 00:22:01 -04:00
|
|
|
|
|
|
|
% line = _erbout.count("\n") + 1
|
|
|
|
% @insns.each do |insn|
|
|
|
|
<%
|
|
|
|
line += 1
|
|
|
|
make_insn_def(insn).split(/(__CURRENT_LINE__|__CURRENT_FILE__)/).each {|e|
|
|
|
|
%><%=
|
2007-07-01 19:57:04 -04:00
|
|
|
case e
|
|
|
|
when '__CURRENT_LINE__'
|
|
|
|
line.to_s
|
|
|
|
when '__CURRENT_FILE__'
|
|
|
|
"vm.inc"
|
2007-02-02 10:21:41 -05:00
|
|
|
else
|
2017-08-22 00:22:01 -04:00
|
|
|
line += e.count("\n")
|
2007-07-01 19:57:04 -04:00
|
|
|
e
|
2007-02-02 10:21:41 -05:00
|
|
|
end
|
2017-08-22 00:22:01 -04:00
|
|
|
%><%
|
2007-02-02 10:21:41 -05:00
|
|
|
}
|
|
|
|
%>
|
2017-08-22 00:22:01 -04:00
|
|
|
% end
|