about summary refs log tree commit diff stats
path: root/subx/061read-byte.subx
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2019-02-15 17:20:57 -0800
committerKartik Agaram <vc@akkartik.com>2019-02-15 17:20:57 -0800
commit9b16f190492f26e065f13f19e51c4e2180a21143 (patch)
tree7f29f176beba335f42a8ecab60f049bcf880db8c /subx/061read-byte.subx
parent5522bc9ec5ee5074ac5b573b66cbec8cd93ccae5 (diff)
downloadmu-9b16f190492f26e065f13f19e51c4e2180a21143.tar.gz
4973
Support immediate operands in the data segment in all the ways we support
them in the code segment.
Diffstat (limited to 'subx/061read-byte.subx')
-rw-r--r--subx/061read-byte.subx18
1 files changed, 9 insertions, 9 deletions
diff --git a/subx/061read-byte.subx b/subx/061read-byte.subx
index a915d436..d3192ce1 100644
--- a/subx/061read-byte.subx
+++ b/subx/061read-byte.subx
@@ -13,13 +13,13 @@
 # buffered-file.
 Stdin:
     # file descriptor or (address stream)
-    00 00 00 00  # 0 = standard input
+    0/imm32  # standard input
     # current write index
-    00 00 00 00
+    0/imm32
     # current read index
-    00 00 00 00
-    # length (8)
-    08 00 00 00
+    0/imm32
+    # length
+    8/imm32
     # data
     00 00 00 00 00 00 00 00  # 8 bytes
 
@@ -291,11 +291,11 @@ _test-buffered-file:
     # file descriptor or (address stream)
     _test-stream/imm32
     # current write index
-    00 00 00 00
+    0/imm32
     # current read index
-    00 00 00 00
-    # length (6)
-    06 00 00 00
+    0/imm32
+    # length
+    6/imm32
     # data
     00 00 00 00 00 00  # 6 bytes