reset flags in interpreter

fix at least part of the problem why comparisons dont work
This commit is contained in:
2020-03-17 10:37:35 +02:00
parent 0ed5e74748
commit e4a79aac50
2 changed files with 9 additions and 4 deletions

View File

@ -98,7 +98,7 @@ module Risc
# get the return from the message (not exit code)
# exit code must be int
def get_message_return
@interpreter.get_register(:r8).return_value
@interpreter.get_register(:message).return_value
end
# wrap the input so it is a main, compile and run it