about summary refs log tree commit diff stats
path: root/060read.subx
diff options
context:
space:
mode:
Diffstat (limited to '060read.subx')
-rw-r--r--060read.subx3
1 files changed, 1 insertions, 2 deletions
diff --git a/060read.subx b/060read.subx
index 661624b2..1f5a557d 100644
--- a/060read.subx
+++ b/060read.subx
@@ -218,8 +218,7 @@ _read:  # fd: int, s: (addr stream byte) -> num-bytes-read/eax: int
     # . . size: edx = s->size - s->write
     29/subtract                     3/mod/direct    2/rm32/edx    .           .             .           0/r32/eax   .               .                 # subtract eax from edx
     # . . syscall
-    b8/copy-to-eax  3/imm32/read
-    cd/syscall  0x80/imm8
+    e8/call  syscall_read/disp32
     # add the result eax to s->write
     01/add                          0/mod/indirect  6/rm32/esi    .           .             .           0/r32/eax   .               .                 # add eax to *esi
 $_read:end: