diff options
| author | kitty <nepeta@canaglie.net> | 2026-03-18 16:11:37 +1100 |
|---|---|---|
| committer | kitty <nepeta@canaglie.net> | 2026-03-18 16:11:37 +1100 |
| commit | 6392033c9bee3da55f4e755059331ebf37c1b1c5 (patch) | |
| tree | 7fdd6db718f7a09a08fffac7fae299d3590f076b /readme.md | |
| parent | 9d2f471ed1cde0c6e448ab6af29e734b49abe972 (diff) | |
syscalls
Diffstat (limited to 'readme.md')
| -rw-r--r-- | readme.md | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -118,6 +118,25 @@ a variable containing a boolean value. if 0 (false), the system is in interpreting mode, if -1 (true), the system is in compiling mode. +### `syscall0 ( rax -- u )` +perform the syscall with the id in `rax`, +and push the value of the `rax` register to the stack. + +### `syscall1 ( rdi rax -- u )` +perform the syscall with the id in `rax`, +taking one parameter placed in `rdi`, +and push the value of the `rax` register to the stack. + +### `syscall2 ( rsi rdi rax -- u )` +perform the syscall with the id in `rax`, +taking two parameters placed in `rdi` and `rsi`, +and push the value of the `rax` register to the stack. + +### `syscall3 ( rdx rsi rdi rax -- u )` +perform the syscall with the id in `rax`, +taking three parameters placed in `rdi`, `rsi` and `rdx`, +and push the value of the `rax` register to the stack. + ### `tib ( -- a )` a variable containing the address of the current input buffer. |
