From f5722b2c09ebd9fcc05c7e62da106c28051f8265 Mon Sep 17 00:00:00 2001 From: Lucas Schumacher Date: Fri, 25 Apr 2025 19:16:52 -0400 Subject: [PATCH] Fix mips read syscall number --- arch/mips.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips.c b/arch/mips.c index 1fc42dd..51881b6 100644 --- a/arch/mips.c +++ b/arch/mips.c @@ -34,7 +34,7 @@ intptr_t read(int32_t fd, const void* buf, intptr_t size){ "move $a0, %1\n" "move $a1, %2\n" "move $a2, %3\n" - "li $v0, 4004\n" + "li $v0, 4003\n" "syscall\n" "move %0, $v0\n" : "=r"(n_read)