implement arm branches

which backfired into interpreter as
plus actually means 0 or plus in arm
may still change back but for now
This commit is contained in:
Torsten Ruger
2015-11-14 00:20:03 +02:00
parent 12e210fdf5
commit 6127d92ca9
2 changed files with 21 additions and 1 deletions

View File

@ -59,7 +59,7 @@ module Interpreter
old = get_register( reg ) # also ensures format
if val.is_a? Fixnum
@flags[:zero] = (val == 0)
@flags[:plus] = (val > 0)
@flags[:plus] = (val >= 0)
@flags[:minus] = (val < 0)
log.debug "Set_flags #{val} :#{@flags.inspect}"
else