split create_binary into two phases

Which gives instructions a chance to check everything
and in Arms case check the constant loads/ instruction adding
So that during assembly no more change happens (and we don't have to reassemble)
This commit is contained in:
Torsten Ruger
2018-06-17 13:53:17 +03:00
parent c94f6eaa78
commit 3298651238
7 changed files with 37 additions and 8 deletions

View File

@@ -37,6 +37,10 @@ module Risc
ret
end
# just part of the protocol, noop in this case
def precheck
end
def to_cpu( translator )
translator.translate( self )
end