Skip to content

Commit

Permalink
tttool play: Implement > and <=
Browse files Browse the repository at this point in the history
Not sure why these were missing before. This fixes #112.
  • Loading branch information
nomeata committed Oct 28, 2015
1 parent 8a777cf commit d0902a7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/GMERun.hs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@ condTrue s (Cond v1 o v2) = value s v1 =?= value s v2
NEq -> (/=)
Lt -> (<)
GEq -> (>=)
_ -> \_ _ -> False
Gt -> (>)
LEq -> (<=)
Unknowncond _ -> \_ _ -> False

value :: Ord r => PlayState r -> TVal r -> Word16
value m (Reg r) = M.findWithDefault 0 r m
Expand Down

0 comments on commit d0902a7

Please sign in to comment.