about summary refs log tree commit diff stats
path: root/060read.subx
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-06-10 23:09:30 -0700
committerKartik Agaram <vc@akkartik.com>2020-06-10 23:09:30 -0700
commit7dac9ade153d736b7a183d073d83b7a17b22b4cc (patch)
treef19ba4be87306ae53caa0ba8c61e5202899cee48 /060read.subx
parent72d893b6b1c0dcaea5c4a38dd6fd83fd0569dd79 (diff)
downloadmu-7dac9ade153d736b7a183d073d83b7a17b22b4cc.tar.gz
6507 - use syscall names everywhere
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: