forked from koder77/l1vm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME-interrupts.txt
51 lines (48 loc) · 1.19 KB
/
README-interrupts.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
L1VM interrupts table
=====================
INTR0
-----
0: load module
1: free module
2: set module function
3: call module function
4: print integer
5: print double float
6: print string
7: print newline
8: delay
9: input integer
10: input double float
11: input string
12: shell arguments number
13: get shell argument
14: show stack pointer
15: return number of CPU cores
16: return endianess of host: little endian = 0, big endian = 1
17: return current time: hh mm ss
18: return current date: year month day
19: return weekday since sunday: 0 - 6
20: print integer number with format string
21: print double number with format string setup
22: print int16 integer number
23: print int32 integer number
24: start timer
25: stop timer
26: stack check: exit program if there is something on the stack, while it should not be there!!
27: print current epos and "INTR0: 27 DEBUG marking"
251: check double number overflow
252: get overflow flag
253: run JIT-compiler
254: run JIT-code
255: EXIT program
INTR1
-----
0: run new CPU
1: join threads
2: lock data mutex
3: unlock data mutex
4: return number of current CPU core
5: return number of free CPU cores
6: set global mutex
7: unset global mutex
255: thread EXIT