From: Aaron Taylor Date: Fri, 26 Jul 2019 12:27:02 +0000 (-0700) Subject: Rearranging output in debug functions. X-Git-Url: http://git.subgeniuskitty.com/vvhitespace/.git/commitdiff_plain/c6e2791fac7c7b29257588f99d350371d2e10627 Rearranging output in debug functions. --- diff --git a/stdlib/debug.pvvs b/stdlib/debug.pvvs index 8baef32..4362a53 100644 --- a/stdlib/debug.pvvs +++ b/stdlib/debug.pvvs @@ -34,8 +34,8 @@ SNT | SWAP @ Print output line for this memory location NSTTTTSTTN | JSR > 111011 (debug:printmagnitude) -SSSTTTSTSN | PUSH ASCII ':' SSSTSSTN | PUSH ASCII '\t' +SSSTTTSTSN | PUSH ASCII ':' TNSS | PUTC TNSS | PUTC SNS | DUP @@ -89,8 +89,8 @@ NSTTTTTSSN | JSR > 111100 (debug:printstring) NSSVSSTTTSSTSSSSSSSTN | Mark: 00111001 00000001 SNS | DUP NSTTTTSTTN | JSR > 111011 (debug:printmagnitude) -SSSTTTSTSN | PUSH ASCII ':' SSSTSSTN | PUSH ASCII '\t' +SSSTTTSTSN | PUSH ASCII ':' TNSS | PUTC TNSS | PUTC SNT | SWAP diff --git a/stdlib_tests/vv_test.py b/stdlib_tests/vv_test.py index cb42baf..4b51b01 100755 --- a/stdlib_tests/vv_test.py +++ b/stdlib_tests/vv_test.py @@ -18,8 +18,8 @@ src_extension = '.pvvs' tests = [ # Format: ['filename_without_extension', 'string for stdin', 'string for expected stdout'] - ['0001_dumpstack', '', 'TOS:\n1\t:+42\n0\t:+255\n'], - ['0002_dumpheap', '', '32\t:+255\n33\t:+42\n'], + ['0001_dumpstack', '', 'TOS:\n1:\t+42\n0:\t+255\n'], + ['0002_dumpheap', '', '32:\t+255\n33:\t+42\n'], ] for test in tests: