summaryrefslogtreecommitdiff
path: root/template/yasmdata.rb.tmpl
blob: 95ad092e4f8c2538e37ee114777d885506365cfe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# -*-ruby-*-
#

class VM
  class InstructionSequence
    class Instruction
      InsnID2NO = {
<%= insn_id2no %>
      }
      
      def self.id2insn_no id
        if InsnID2NO.has_key? id
          InsnID2NO[id]
        end
      end
    end
  end
end