ETISS 0.8.0
Extendable Translating Instruction Set Simulator (version 0.8.0)
SemihostingCalls.h
Go to the documentation of this file.
1 #ifndef ETISS_INCLUDE_SEMIHOSTING_CALLS_H_
2 #define ETISS_INCLUDE_SEMIHOSTING_CALLS_H_
3 
4 // taken from
5 // https://github.com/ARM-software/abi-aa/releases/download/2022Q1/semihosting.pdf
6 
7 #define SYS_OPEN 0x01
8 #define SYS_CLOSE 0x02
9 #define SYS_WRITEC 0x03
10 #define SYS_WRITE0 0x04
11 #define SYS_WRITE 0x05
12 #define SYS_READ 0x06
13 #define SYS_READC 0x07
14 #define SYS_ISERROR 0x08
15 #define SYS_ISTTY 0x09
16 #define SYS_SEEK 0x0A
17 #define SYS_FLEN 0x0C
18 #define SYS_TMPNAM 0x0D
19 #define SYS_REMOVE 0x0E
20 #define SYS_RENAME 0x0F
21 #define SYS_CLOCK 0x10
22 #define SYS_TIME 0x11
23 #define SYS_SYSTEM 0x12
24 #define SYS_ERRNO 0x13
25 #define SYS_GET_CMDLINE 0x15
26 #define SYS_HEAPINFO 0x16
27 #define SYS_EXIT 0x18
28 #define SYS_EXIT_EXTENDED 0x20
29 #define SYS_ELAPSED 0x30
30 #define SYS_TICKFREQ 0x31
31 
32 #endif