Sha256: 3e0f17e97ba40eae47fa83caf3eb6fa7b7710fc6e3525c1b381a89694f71123c
Contents?: true
Size: 602 Bytes
Versions: 2
Compression:
Stored size: 602 Bytes
Contents
# This file is part of Metasm, the Ruby assembly manipulation suite # Copyright (C) 2006-2009 Yoann GUILLOT # # Licence is LGPL, see LICENCE in the top-level directory require 'metasm/cpu/cy16/opcodes' require 'metasm/render' module Metasm class CY16 class Reg include Renderable def render ; [self.class.i_to_s[@i]] end end class Memref include Renderable def render r = [] r << (@sz == 1 ? 'byte ptr ' : 'word ptr ') r << '[' r << @base if @base r << '++' if @autoincr r << ' + ' if @base and @offset r << @offset if @offset r << ']' end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
metasm-1.0.5 | metasm/cpu/cy16/render.rb |
metasm-1.0.4 | metasm/cpu/cy16/render.rb |