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:
Torsten Ruger
2015-11-13 20:47:08 +02:00
parent 4a8bb32039
commit 9ab3de234d
4 changed files with 15 additions and 0 deletions

View File

@ -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