remove some more add_xx functions
also load labels by dsl now
This commit is contained in:
@ -139,9 +139,8 @@ module Risc
|
||||
|
||||
# for computationally building code (ie writing assembler) these short cuts
|
||||
# help to instantiate risc instructions and add them immediately
|
||||
[:label, :reg_to_slot , :slot_to_reg , :load_constant, :load_data,
|
||||
:function_return , :function_call, :op ,
|
||||
:transfer , :reg_to_slot , :byte_to_reg , :reg_to_byte].each do |method|
|
||||
[ :slot_to_reg , :load_constant, :load_data,
|
||||
:transfer ].each do |method|
|
||||
define_method("add_#{method}".to_sym) do |*args|
|
||||
if not @source_used
|
||||
args[0] = @source
|
||||
|
Reference in New Issue
Block a user