about summary refs log tree commit diff stats
path: root/subx/059read-byte.subx
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2018-12-03 17:31:35 -0800
committerKartik Agaram <vc@akkartik.com>2018-12-03 17:32:42 -0800
commitee73f5eb31e9dd5a185da097bd990ac94c3d282b (patch)
treec3ee7034a7d2e67bc4a0ecc2df79fe681c7c9d71 /subx/059read-byte.subx
parent83822d63240cc4d03d00133719993f5e4b2c281f (diff)
downloadmu-ee73f5eb31e9dd5a185da097bd990ac94c3d282b.tar.gz
4829
Showing the error bit pattern explicitly makes it more clear that it's
not possible to generate as a non-error value.
Diffstat (limited to 'subx/059read-byte.subx')
-rw-r--r--subx/059read-byte.subx6
1 files changed, 3 insertions, 3 deletions
diff --git a/subx/059read-byte.subx b/subx/059read-byte.subx
index 305bcbb8..e91a3532 100644
--- a/subx/059read-byte.subx
+++ b/subx/059read-byte.subx
@@ -195,7 +195,7 @@ test-read-byte-multiple:
     c3/return
 
 test-read-byte-end-of-file:
-    # - call read-byte on an empty 'file', check that it returns -1
+    # - call read-byte on an empty 'file', check that it returns 0xffffffff
     # setup
     # . clear-stream(_test-stream)
     # . . push args
@@ -220,10 +220,10 @@ test-read-byte-end-of-file:
     e8/call  read-byte/disp32
     # . . discard args
     81          0/subop/add         3/mod/direct    4/rm32/ESP    .           .             .           .           .               4/imm32           # add to ESP
-    # check-ints-equal(EAX, -1, msg)
+    # check-ints-equal(EAX, 0xffffffff, msg)
     # . . push args
     68/push  "F - test-read-byte-end-of-file"/imm32
-    68/push  -1/imm32
+    68/push  0xffffffff/imm32
     50/push-EAX
     # . . call
     e8/call  check-ints-equal/disp32