Syscalls: Difference between revisions

From EX-word
Jump to navigation Jump to search
(Added stub list of syscalls)
 
(Added parameter and return value details.)
Line 1: Line 1:
{|
{|class="wikitable"
|[[Syscall:0]]  ||Copies all of VRAM to the LCD.
!Syscall!!Parameters!!Returns!!Summary
|-
|-
|[[Syscall:1]] ||Copies a rectangular region of VRAM to the LCD.
|[[Syscall:0]]||||||Copies all of VRAM to the LCD.
|-
|-
|[[Syscall:2]] ||Draws a line.
|[[Syscall:1]]||int x, int y, int w, int h||||Copies a rectangular region of VRAM to the LCD.
|-
|-
|[[Syscall:3]] ||Draws a line.
|[[Syscall:2]]||int x, int y, int w, int h, byte ?||||Draws a line.
|-
|-
|[[Syscall:4]] ||Draws a line.
|[[Syscall:3]]||int x, int y, int w, int h||||Draws a line.
|-
|-
|[[Syscall:5]] ||Draws a line.
|[[Syscall:4]]||int x, int y, int w, int h||||Draws a line.
|-
|-
|[[Syscall:6]] ||Draws a line.
|[[Syscall:5]]||int x, int y, int w, int h||||Draws a line.
|-
|-
|[[Syscall:7]] ||Clears VRAM.
|[[Syscall:6]]||int x1, int y1, int x2, int y2, byte ?||||Draws a line.
|-
|-
|[[Syscall:8]] ||Inverts a rectangular region of VRAM.
|[[Syscall:7]]||||||Clears VRAM.
|-
|-
|[[Syscall:9]] ||Fades a rectangular region of VRAM.
|[[Syscall:8]]||int x, int y, int w, int h||||Inverts a rectangular region of VRAM.
|-
|-
|[[Syscall:A]] ||Clears a rectangular region of VRAM.
|[[Syscall:9]]||int x, int y, int w, int h||||Fades a rectangular region of VRAM.
|-
|-
|[[Syscall:B]] ||Copies a region of VRAM to main memory.
|[[Syscall:A]]||int x, int y, int w, int h||||Clears a rectangular region of VRAM.
|-
|-
|[[Syscall:C]] ||Inverts a rectangular region of the screen then clears an inner portion.
|[[Syscall:B]]||int x, int y, int w, int h, byte *dest||||Copies a region of VRAM to main memory.
|-
|-
|[[Syscall:D]] ||Draws an image at a specified (x, y) coordinate to VRAM.
|[[Syscall:C]]||int x, int y, int w, int h, byte border||||Inverts a rectangular region of the screen then clears an inner portion.
|-
|-
|[[Syscall:E]] ||Draws an image at a specified (x, y) coordinate to VRAM with special operations.
|[[Syscall:D]]||int x, int y, image *img||||Draws an image at a specified (x, y) coordinate to VRAM.
|-
|-
|[[Syscall:F]] ||Draws a faded image at a specified (x, y) coordinate to VRAM.
|[[Syscall:E]]||int x, int y, image *img, int mode||||Draws an image at a specified (x, y) coordinate to VRAM with special operations.
|-
|-
|[[Syscall:10]] ||Preserves then clears a rectangular region of VRAM.
|[[Syscall:F]]||int x, int y, image *img||||Draws a faded image at a specified (x, y) coordinate to VRAM.
|-
|-
|[[Syscall:11]] ||Restores the previously-preserved rectangular region of VRAM.
|[[Syscall:10]]||int x, int y, int w, int h||int success||Preserves then clears a rectangular region of VRAM.
|-
|-
|[[Syscall:12]] ||Delays for a short while.
|[[Syscall:11]]||||||Restores the previously-preserved rectangular region of VRAM.
|-
|-
|[[Syscall:13]] ||Registers a callback function to run when switching out of the add-on.
|[[Syscall:12]]||int delay||||Delays for a short while.
|-
|-
|[[Syscall:14]] ||Gets the current application's path.
|[[Syscall:13]]||void (*)() callback||||Registers a callback function to run when switching out of the add-on.
|-
|-
|[[Syscall:15]] ||Gets the current application's ID.
|[[Syscall:14]]||char *path, char *?||||Gets the current application's path.
|-
|-
|[[Syscall:1A]] ||Prints a single character to VRAM.
|[[Syscall:15]]||char *id, char *?||||Gets the current application's ID.
|-
|-
|[[Syscall:1B]] ||Prints a string to VRAM.
|[[Syscall:1A]]||int x, int y, font *c||int w||Prints a single character to VRAM.
|-
|-
|[[Syscall:1C]] ||Measures a single character.
|[[Syscall:1B]]||int x, int y, char *s, font *f||int w||Prints a string to VRAM.
|-
|-
|[[Syscall:1D]] ||Draws a faded image at a specified (x, y) coordinate to VRAM with plotting mode and background options.
|[[Syscall:1C]]||int *w, int *h, font *c||int error||Measures a single character.
|-
|-
|[[Syscall:1E]] ||Draws a system icon to VRAM.
|[[Syscall:1D]]||int x, int y, image *img, int mode, int background||||Draws an image at a specified (x, y) coordinate to VRAM with plotting mode and background options.
|-
|-
|[[Syscall:1F]] ||Clears a system icon from VRAM.
|[[Syscall:1E]]||int icon, int mode||||Draws a system icon to VRAM.
|-
|-
|[[Syscall:20]] ||Draws a system icon at a specified (x, y) coordinate to VRAM.
|[[Syscall:1F]]||int icon||||Clears a system icon from VRAM.
|-
|-
|[[Syscall:21]] ||Copies a system icon's region of VRAM to the LCD.
|[[Syscall:20]]||int x, int y, int icon, int mode||||Draws a system icon at a specified (x, y) coordinate to VRAM.
|-
|-
|[[Syscall:22]] ||Copies a system icon's region of VRAM to the LCD at a specified (x, y) coordinate.
|[[Syscall:21]]||int icon||||Copies a system icon's region of VRAM to the LCD.
|-
|-
|[[Syscall:23]] ||Scrolls a rectangular region of VRAM vertically.
|[[Syscall:22]]||int icon, int x, int y||||Copies a system icon's region of VRAM to the LCD at a specified (x, y) coordinate.
|-
|-
|[[Syscall:24]] ||Draws a dotted horizontal line.
|[[Syscall:23]]||int x, int y, int w, int h, int amount||||Scrolls a rectangular region of VRAM vertically.
|-
|[[Syscall:24]]||int x, int y, int length||||Draws a dotted horizontal line.
|-
|-
|}
|}

Revision as of 22:38, 8 May 2024

Syscall Parameters Returns Summary
Syscall:0 Copies all of VRAM to the LCD.
Syscall:1 int x, int y, int w, int h Copies a rectangular region of VRAM to the LCD.
Syscall:2 int x, int y, int w, int h, byte ? Draws a line.
Syscall:3 int x, int y, int w, int h Draws a line.
Syscall:4 int x, int y, int w, int h Draws a line.
Syscall:5 int x, int y, int w, int h Draws a line.
Syscall:6 int x1, int y1, int x2, int y2, byte ? Draws a line.
Syscall:7 Clears VRAM.
Syscall:8 int x, int y, int w, int h Inverts a rectangular region of VRAM.
Syscall:9 int x, int y, int w, int h Fades a rectangular region of VRAM.
Syscall:A int x, int y, int w, int h Clears a rectangular region of VRAM.
Syscall:B int x, int y, int w, int h, byte *dest Copies a region of VRAM to main memory.
Syscall:C int x, int y, int w, int h, byte border Inverts a rectangular region of the screen then clears an inner portion.
Syscall:D int x, int y, image *img Draws an image at a specified (x, y) coordinate to VRAM.
Syscall:E int x, int y, image *img, int mode Draws an image at a specified (x, y) coordinate to VRAM with special operations.
Syscall:F int x, int y, image *img Draws a faded image at a specified (x, y) coordinate to VRAM.
Syscall:10 int x, int y, int w, int h int success Preserves then clears a rectangular region of VRAM.
Syscall:11 Restores the previously-preserved rectangular region of VRAM.
Syscall:12 int delay Delays for a short while.
Syscall:13 void (*)() callback Registers a callback function to run when switching out of the add-on.
Syscall:14 char *path, char *? Gets the current application's path.
Syscall:15 char *id, char *? Gets the current application's ID.
Syscall:1A int x, int y, font *c int w Prints a single character to VRAM.
Syscall:1B int x, int y, char *s, font *f int w Prints a string to VRAM.
Syscall:1C int *w, int *h, font *c int error Measures a single character.
Syscall:1D int x, int y, image *img, int mode, int background Draws an image at a specified (x, y) coordinate to VRAM with plotting mode and background options.
Syscall:1E int icon, int mode Draws a system icon to VRAM.
Syscall:1F int icon Clears a system icon from VRAM.
Syscall:20 int x, int y, int icon, int mode Draws a system icon at a specified (x, y) coordinate to VRAM.
Syscall:21 int icon Copies a system icon's region of VRAM to the LCD.
Syscall:22 int icon, int x, int y Copies a system icon's region of VRAM to the LCD at a specified (x, y) coordinate.
Syscall:23 int x, int y, int w, int h, int amount Scrolls a rectangular region of VRAM vertically.
Syscall:24 int x, int y, int length Draws a dotted horizontal line.