2007-02-02 10:21:41 -05:00
|
|
|
# -*-ruby-*-
|
|
|
|
#
|
|
|
|
|
2007-08-12 15:02:30 -04:00
|
|
|
class VM
|
2007-02-02 10:21:41 -05:00
|
|
|
class InstructionSequence
|
|
|
|
class Instruction
|
|
|
|
InsnID2NO = {
|
|
|
|
<%= insn_id2no %>
|
|
|
|
}
|
|
|
|
|
|
|
|
def self.id2insn_no id
|
|
|
|
if InsnID2NO.has_key? id
|
|
|
|
InsnID2NO[id]
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|