jump was written off the end of binary code, fixed

This commit is contained in:
Torsten Ruger
2018-05-28 11:45:04 +03:00
parent 1c09d4202f
commit be1bc63ff2
10 changed files with 58 additions and 27 deletions

View File

@ -27,13 +27,13 @@ module Risc
end
#even less glue to get that last jump in there.
# So instructions don't run into the BinaryCode object header
# So instructions don't run into the BinaryCode object header
class JumpWriter
def initialize( code )
@code = code
end
def write_unsigned_int_32( bin )
@code.set_word( 14 , bin )
@code.set_last( bin )
end
end
end