From d353353748460c16ffc2674a761f41485e255a54 Mon Sep 17 00:00:00 2001 From: Anton Lydike Date: Mon, 18 Apr 2022 20:30:41 +0200 Subject: [PATCH] fixed link in syscall docs --- docs/syscalls.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/syscalls.md b/docs/syscalls.md index 9cf3e64..aabafc7 100644 --- a/docs/syscalls.md +++ b/docs/syscalls.md @@ -47,4 +47,4 @@ Requires flag `--scall-fs` to be set to True # Extending these syscalls -You can implement your own syscall by adding its code to the `SYSCALLS` dict in the [riscemu/syscalls.py](./riscemu/syscalls.py) file, creating a mapping of a syscall code to a name, and then implementing that syscall name in the SyscallInterface class further down that same file. Each syscall method should have the same signature: `read(self, scall: Syscall)`. The `Syscall` object gives you access to the cpu, through which you can access registers and memory. You can look at the `read` or `write` syscalls for further examples. +You can implement your own syscall by adding its code to the `SYSCALLS` dict in the [riscemu/syscalls.py](../riscemu/syscall.py) file, creating a mapping of a syscall code to a name, and then implementing that syscall name in the SyscallInterface class further down that same file. Each syscall method should have the same signature: `read(self, scall: Syscall)`. The `Syscall` object gives you access to the cpu, through which you can access registers and memory. You can look at the `read` or `write` syscalls for further examples.