summaryrefslogtreecommitdiff
path: root/documentation
diff options
context:
space:
mode:
Diffstat (limited to 'documentation')
-rw-r--r--documentation/kernel-interface/keys.txt (renamed from documentation/keys.txt)0
-rw-r--r--documentation/kernel-interface/sockets.txt (renamed from documentation/sockets.txt)0
-rw-r--r--documentation/kernel-interface/syscalls.txt (renamed from documentation/syscalls.txt)14
3 files changed, 12 insertions, 2 deletions
diff --git a/documentation/keys.txt b/documentation/kernel-interface/keys.txt
index 1b92afa..1b92afa 100644
--- a/documentation/keys.txt
+++ b/documentation/kernel-interface/keys.txt
diff --git a/documentation/sockets.txt b/documentation/kernel-interface/sockets.txt
index 73dade6..73dade6 100644
--- a/documentation/sockets.txt
+++ b/documentation/kernel-interface/sockets.txt
diff --git a/documentation/syscalls.txt b/documentation/kernel-interface/syscalls.txt
index 52e909d..792c300 100644
--- a/documentation/syscalls.txt
+++ b/documentation/kernel-interface/syscalls.txt
@@ -63,9 +63,19 @@ get new pages:
rax out: start of first page
the allocated pages are next to each other, writable, and not executable.
-read key packet:
+get input packet:
rax in: 5
- eax out: key packet
+ al out:
+ bit 7: was mouse packet
+ if bit 7:
+ bit 0: left mouse button down
+ bit 1: right mouse button down
+ bit 2: middle mouse button down
+ if bit 7:
+ di out: mouse x change (signed)
+ si out: mouse y change (signed)
+ else:
+ edi out: key packet
create private socket:
rax in: 6