-
Notifications
You must be signed in to change notification settings - Fork 2
/
system.inc
67 lines (67 loc) · 1.4 KB
/
system.inc
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
KRN_SEG EQU 0x07C0
_KernelCall EQU 2
_DumpRegisters EQU 5
%define KernelCall KRN_SEG:_KernelCall
%define DumpRegisters KRN_SEG:_DumpRegisters
KERNEL_API_V EQU 3
ReadSector EQU 0
WriteSector EQU 1
;String Calls (v1)
StringLength EQU 2
PrintString EQU 3
PrintChar EQU 4
PrintByteHex EQU 5
PrintHex EQU 6
PrintNewLine EQU 7
UInt2Str EQU 8
Int2Str EQU 9
PrintUInt EQU 10
PrintInt EQU 11
GetCursorPos EQU 12
;GetCursorPosXY 13 (unimplemented)
SetCursorPos EQU 14
SetCursorPosXY EQU 15
GetCursorAttribute EQU 16
SetCursorAttribute EQU 17
SetTextColor EQU 18
GetKey EQU 19
PrintTitle EQU 20
ReadString EQU 21
ReadStringSafe EQU 22
MemoryCopy EQU 23
StringCopy EQU 24
SetBackgroundColor EQU 25
DisableCursorUpdate EQU 26
EnableCursorUpdate EQU 27
SetScreenPage EQU 28
ClearScreen EQU 29
;Filesystem Calls (v1)
FindFile EQU 30
FindFile8_3 EQU 31
ReadFile EQU 32
ReadFile8_3 EQU 33
ReadFileEntry EQU 34
;Debug Calls (v1) / Program Calls (v2) / Allocator Calls (v2)
DumpMemory EQU 35
GetStackTrace EQU 36
ExecProgram EQU 37
MemAlloc EQU 38
MemFree EQU 39
;String/Screen Calls (v2)
DrawBox EQU 40
SetCursorOffset EQU 41
ScrollScreen EQU 42
SubStringCopy EQU 43
StringConcat EQU 44
PrintStringL EQU 45
GetScreenWidth EQU 46
GetScreenHeight EQU 47
StringCompare EQU 48
GetScreenPage EQU 49
;Filesystem Calls (v2) / Allocator Calls (v2)
GetFileCount EQU 50
ListFiles EQU 51
InitHeap EQU 52
MemRealloc EQU 53
;Screen Calls (v3)
FillBackgroundColor EQU 55