summaryrefslogtreecommitdiff
path: root/src/user/include/pland
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 /src/user/include/pland
parent594aeeb09bc24de7064eb1bddf6e86c1a134838e (diff)
downloadportland-os-21491514b3642a321ce65f2a07428f63c4d9feb5.tar.gz
manual viewer, "swap colors" system call
Diffstat (limited to 'src/user/include/pland')
-rw-r--r--src/user/include/pland/syscall.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/user/include/pland/syscall.h b/src/user/include/pland/syscall.h
index 14164aa..ead5fea 100644
--- a/src/user/include/pland/syscall.h
+++ b/src/user/include/pland/syscall.h
@@ -140,7 +140,8 @@ enum _scn {
_SCN_PRINT_AT,
_SCN_COUNT_OF_DIR,
_SCN_CLEAR_SCREEN,
- _SCN_SET_COLOR
+ _SCN_SET_COLOR,
+ _SCN_SWAP_COLOR
};
static inline uint32_t _sc0(enum _scn eax) {
@@ -285,4 +286,8 @@ static inline void _set_color(_vga_color_t color) {
_sc1(_SCN_SET_COLOR, color);
}
+static inline void _swap_color(uint8_t row, uint8_t col) {
+ _sc1(_SCN_SWAP_COLOR, (row << 8) | col);
+}
+
#endif \ No newline at end of file