⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 syscall_en.txt

📁 这是一个用java编的windlx模拟器
💻 TXT
字号:
SYSCALL INSTRUCTION
===================

The SYSCALL instruction offers to the programmer an operating-system-like
interface.
System calls expect that the address of their parameters is stored in register
R14, and will put their return value in register R1.
If an error occurs, they put the value -1 into R1 register.
The syscall 0 not returns anything.


Syscall 0

Description: Stops the simulator (it's similar to HALT deprecated instruction)
Parameters: None


Syscall 1

Description: Open a file
Parameters: 1 - Pathname of the file that must be opened
            2 - an integer that be used to specify how to open the file
                 (see the manual to more detail)

Syscall 2

Description: Close a file
Parameters: 1 - File descriptor of the file must be closed

Syscall 3

Description: Read bytes from an input source
Parameters: 1 - file descriptor to read from (0 for keyboard)
            2 - address where the read data must be put into
            3 - number of bytes to read

Syscall 4

Description: Write bytes into an output source
Parameters: 1 - file descriptor to write to
            2 - the address where the data must be read from
            3 - number of bytes to write

Syscall 5

Description: Print a string
Parameters: 1 - format string tha can be included some placeholders
              - a parameter for each placeholders

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -