automatically create binary once cpu instructions are there

This commit is contained in:
Torsten Ruger
2018-03-26 19:42:15 +03:00
parent 3fcb4b74c7
commit 294f4d988f
3 changed files with 3 additions and 5 deletions

View File

@ -57,12 +57,9 @@ module Parfait
@cpu_instructions << cpu if cpu
nekst = nekst.next
end
@cpu_instructions
end
def create_binary
total = @cpu_instructions.total_byte_length / 4 + 1
@binary = BinaryCode.new( total )
@cpu_instructions
end
# determine whether this method has an argument by the name