metasm/cpu/bpf/render.rb in metasm-1.0.3 vs metasm/cpu/bpf/render.rb in metasm-1.0.4
- old
+ new
@@ -11,11 +11,11 @@
class BPF
class Reg
include Renderable
def render ; [@v.to_s] end
end
- class MemRef
+ class Memref
include Renderable
def render
r = []
r << memtype
r << [nil, ' byte ', ' word ', nil, ' dword '][@msz]
@@ -23,19 +23,8 @@
r << @base if @base
r << '+' if @base and @offset
r << @offset if @offset
r << ']'
end
- end
-
- def render_instruction(i)
- r = []
- r << i.opname
- if not i.args.empty?
- r << ' '
- i.args.each { |a_| r << a_ << ', ' }
- r.pop
- end
- r
end
end
end