about summary refs log tree commit diff stats
path: root/subx/056trace.subx
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2019-07-21 22:34:15 -0700
committerKartik Agaram <vc@akkartik.com>2019-07-21 23:29:38 -0700
commit0d219f0a732d81dad124906f5594a06b023fa3a0 (patch)
tree1e450a89e25e609c900c57edfb88ded4e96cf8da /subx/056trace.subx
parentac8a9396b96259ed2d068abf30863540a21648f3 (diff)
downloadmu-0d219f0a732d81dad124906f5594a06b023fa3a0.tar.gz
5438 - raise error on uppercase hex
We can now translate layers 49-56 using the self-hosted translator
(`translate` and `ntranslate`).

As a follow-up to commit 5404, the self-hosted translator is a little
more strict than the C++ translator in 3 places:

a) All .subx files must define a data segment.

b) All .subx files must define an `Entry` label.

c) All numbers must be in *lowercase* hex.

In all cases, where programs work with the C++ translator but violate
the self-hosted translator's assumptions, we must make sure we raise
errors rather than silently emit bad code.
Diffstat (limited to 'subx/056trace.subx')
-rw-r--r--subx/056trace.subx4
1 files changed, 2 insertions, 2 deletions
diff --git a/subx/056trace.subx b/subx/056trace.subx
index cc245e3f..c1105b15 100644
--- a/subx/056trace.subx
+++ b/subx/056trace.subx
@@ -984,7 +984,7 @@ _test-stream-line-ABABA:
     # length
     8/imm32
     # data
-    41 42 41 42 41 0A 00 00  # 8 bytes
+    41 42 41 42 41 0a 00 00  # 8 bytes
 
 _test-stream-empty:
     # write
@@ -1004,6 +1004,6 @@ _test-stream-filled:
     # length
     8/imm32
     # data
-    41 41 41 41 0A 41 41 41  # 8 bytes
+    41 41 41 41 0a 41 41 41  # 8 bytes
 
 # . . vim:nowrap:textwidth=0