Class: C8dasm::Assembly

Inherits:
Object
  • Object
show all
Defined in:
lib/c8dasm/assembly.rb

Instance Method Summary collapse

Constructor Details

#initialize(opcode) ⇒ Assembly

Returns a new instance of Assembly.



5
6
7
8
# File 'lib/c8dasm/assembly.rb', line 5

def initialize(opcode)
  @opcode = opcode
  @assembly = build_assembly.to_s || ''
end

Instance Method Details

#to_sObject



10
11
12
# File 'lib/c8dasm/assembly.rb', line 10

def to_s
  @assembly
end