fix the gapping of instructions

so last binary stays empty and new starts at 8
This commit is contained in:
Torsten Ruger
2018-06-06 01:16:00 +03:00
parent 4ab6d62acf
commit 4789b63fcb
4 changed files with 19 additions and 20 deletions

View File

@ -56,6 +56,10 @@ module Risc
listener.code
end
def valid?
@at != -1
end
def set(int)
return int if int == self.at
Position.set_to(self , int)