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