Skip to content

Commit

Permalink
Fix ordering of flags in dump-state output
Browse files Browse the repository at this point in the history
Resolves #5
  • Loading branch information
iafisher committed Dec 14, 2018
1 parent 7e9e5ad commit 3577780
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hera/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ def dump_state(vm):
rname = "\tR" + str(i) + (" " if i < 10 else "")
print_register_debug(rname, value)
nprint()
nprint("\tCarry-block flag is " + ("ON" if vm.flag_carry_block else "OFF"))
nprint("\tCarry flag is " + ("ON" if vm.flag_carry else "OFF"))
nprint("\tOverflow flag is " + ("ON" if vm.flag_overflow else "OFF"))
nprint("\tZero flag is " + ("ON" if vm.flag_zero else "OFF"))
nprint("\tSign flag is " + ("ON" if vm.flag_sign else "OFF"))
nprint("\tOverflow flag is " + ("ON" if vm.flag_overflow else "OFF"))
nprint("\tCarry flag is " + ("ON" if vm.flag_carry else "OFF"))
nprint("\tCarry block flag is " + ("ON" if vm.flag_carry_block else "OFF"))

0 comments on commit 3577780

Please sign in to comment.