introducing references

This commit is contained in:
Torsten Ruger
2014-06-14 23:48:12 +03:00
parent 4db54a760e
commit a68d84a781
6 changed files with 14 additions and 8 deletions

View File

@ -1,7 +1,7 @@
module Vm
class Integer < Word
# needs to be here as Word's constructor is private (to make it abstract)
def initilize reg
def initialize reg
super
end
@ -33,7 +33,7 @@ module Vm
block.sub( self , left , right )
self
end
def left_shift block , first , right
def left_shift block , left , right
block.mov( self , left , shift_lsr: right )
self
end

View File

@ -1,7 +1,7 @@
module Vm
class Reference
class Reference < Word
# needs to be here as Word's constructor is private (to make it abstract)
def initilize reg
def initialize reg
super
end