summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorBenji Dial <Benji3.141@gmail.com>2020-11-08 11:11:49 -0500
committerBenji Dial <Benji3.141@gmail.com>2020-11-08 11:11:49 -0500
commit21491514b3642a321ce65f2a07428f63c4d9feb5 (patch)
treecf2384926e9d8e4cb0dcf2c9babd37fc7809c5da /doc
parent594aeeb09bc24de7064eb1bddf6e86c1a134838e (diff)
downloadportland-os-21491514b3642a321ce65f2a07428f63c4d9feb5.tar.gz
manual viewer, "swap colors" system call
Diffstat (limited to 'doc')
-rw-r--r--doc/ints.txt35
-rw-r--r--doc/man.txt20
2 files changed, 38 insertions, 17 deletions
diff --git a/doc/ints.txt b/doc/ints.txt
index 45c09b3..c89b433 100644
--- a/doc/ints.txt
+++ b/doc/ints.txt
@@ -24,23 +24,24 @@ invalid system call numbers change eax to -1, and have no other effect.
table 1:
- function | eax | eax out | ebx | ecx | edx | esi | edi
-----------------|-----|-----------------|----------------|-------------|-------------|--------|-----
- open file | 0x0 | handle | drive number | path | | |
- close file | 0x1 | | handle | | | |
- file read | 0x2 | read | handle | file offset | count | buffer |
- get file size | 0x3 | size | handle | | | |
- start task | 0x4 | handle | drive number | path | passed sz | |
- log string | 0x5 | | sz string | | | |
- get key | 0x6 | keycode | | | | |
- allocate ram | 0x7 | start pointer | pages | | | |
- memory info | 0x8 | see table 2 | see table 2 | | | |
- wait for task | 0x9 | | handle | | | |
- enumerate dir | 0xa | count | drive number | path | see table 3 | max |
- vga print at | 0xb | | row << 8 | col | sz string | | |
- count of dir | 0xc | number of files | drive number | path | | |
- clear screen | 0xd | | | | | |
- set color | 0xe | | VGA color code | | | |
+ function | eax | eax out | ebx | ecx | edx | esi | edi
+----------------|-----|-----------------|----------------|----------------|-------------|--------|-----
+ open file | 0x0 | handle | drive number | path | | |
+ close file | 0x1 | | handle | | | |
+ file read | 0x2 | read | handle | file offset | count | buffer |
+ get file size | 0x3 | size | handle | | | |
+ start task | 0x4 | handle | drive number | path | passed sz | |
+ log string | 0x5 | | sz string | | | |
+ get key | 0x6 | keycode | | | | |
+ allocate ram | 0x7 | start pointer | pages | | | |
+ memory info | 0x8 | see table 2 | see table 2 | | | |
+ wait for task | 0x9 | | handle | | | |
+ enumerate dir | 0xa | count | drive number | path | see table 3 | max |
+ vga print at | 0xb | | row << 8 | col | sz string | | |
+ count of dir | 0xc | number of files | drive number | path | | |
+ clear screen | 0xd | | | | | |
+ set color | 0xe | | VGA color code | | | |
+ swap color | 0xf | | row << 8 | col | | | |
table 2:
diff --git a/doc/man.txt b/doc/man.txt
new file mode 100644
index 0000000..37a2642
--- /dev/null
+++ b/doc/man.txt
@@ -0,0 +1,20 @@
+manual format:
+
+dword: length of title (without sz)
+title (sz)
+dword: number of links
+dword: length of link table (in bytes)
+link table
+ entry:
+ dword: line
+ byte: start column
+ byte: text length
+ dword: length of file pointed to (without sz)
+ file pointed to (sz)
+dword: length of line pointer list (in dwords)
+line pointer list
+ dword offsets into file
+
+lines
+ 0x00 - 0x7f are characters
+ 0x80 - 0xff are color codes | 0x80 \ No newline at end of file