some helper functions
for when i started the assembler div10 in the end i did the div10 in some, so no need
This commit is contained in:
@ -16,6 +16,9 @@ module Register
|
||||
"LoadConstant: #{register} <- #{constant_str}"
|
||||
end
|
||||
|
||||
def self.load source , constant , register
|
||||
LoadConstant.new source , constant , register
|
||||
end
|
||||
private
|
||||
def constant_str
|
||||
case @constant
|
||||
|
Reference in New Issue
Block a user