about summary refs log tree commit diff stats
path: root/subx
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2017-10-11 02:34:32 -0700
committerKartik K. Agaram <vc@akkartik.com>2017-10-11 02:34:32 -0700
commitbd00c14c37f813b28dde77def29114a5f5976e6c (patch)
tree449a4c97738da9c8f6bf70a7c448fc7cb089381f /subx
parentf40dd267890c6be2d126254593434e10b44b42db (diff)
downloadmu-bd00c14c37f813b28dde77def29114a5f5976e6c.tar.gz
4022
Diffstat (limited to 'subx')
-rw-r--r--subx/010core.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/subx/010core.cc b/subx/010core.cc
index f62e3027..82e8672e 100644
--- a/subx/010core.cc
+++ b/subx/010core.cc
@@ -26,9 +26,11 @@ EIP = 0;
 //:: simulated flag registers; just a subset that we care about
 
 :(before "End Globals")
-bool OF=false, ZF=false, SF=false;
+bool SF = false;  // sign flag
+bool ZF = false;  // zero flag
+bool OF = false;  // overflow flag
 :(before "End Reset")
-OF = ZF = SF = false;
+SF = ZF = OF = false;
 
 //: how the flag registers are updated after each instruction