about summary refs log tree commit diff stats
path: root/subx/010vm.cc
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2018-07-25 16:40:00 -0700
committerKartik Agaram <vc@akkartik.com>2018-07-25 16:40:00 -0700
commit3d3cb2a166b54e0ce990e420c64f9c37a88f0d7e (patch)
treebb5dd17dbd79602a322f668222f1aea0e1b5f364 /subx/010vm.cc
parentb22e5e144787370ea5d0a715e6979d2b987d4295 (diff)
downloadmu-3d3cb2a166b54e0ce990e420c64f9c37a88f0d7e.tar.gz
4409
Word-wrap online help.

Fixes #8.
Diffstat (limited to 'subx/010vm.cc')
-rw-r--r--subx/010vm.cc12
1 files changed, 9 insertions, 3 deletions
diff --git a/subx/010vm.cc b/subx/010vm.cc
index d2f39e90..4d13f27d 100644
--- a/subx/010vm.cc
+++ b/subx/010vm.cc
@@ -37,12 +37,18 @@ cerr << "  registers\n";
 put(Help, "registers",
   "SubX currently supports eight 32-bit integer registers: R0 to R7.\n"
   "R4 (ESP) contains the top of the stack.\n"
-  "There's also a register for the address of the currently executing instruction. It is modified by jumps.\n"
-  "Various instructions modify one or more of three 1-bit 'flag' registers, as a side-effect:\n"
-  "- the sign flag (SF): usually set if an arithmetic result is negative, or reset if not.\n"
+  "\n"
+  "There's also a register for the address of the currently executing\n"
+  "instruction. It is modified by jumps.\n"
+  "\n"
+  "Various instructions modify one or more of three 1-bit 'flag' registers,\n"
+  "as a side-effect:\n"
+  "- the sign flag (SF): usually set if an arithmetic result is negative, or\n"
+  "  reset if not.\n"
   "- the zero flag (ZF): usually set if a result is zero, or reset if not.\n"
   "- the overflow flag (OF): usually set if an arithmetic result overflows.\n"
   "The flag bits are read by conditional jumps.\n"
+  "\n"
   "We don't support non-integer (floating-point) registers yet.\n"
 );