diff options
author | Benji Dial <Benji3.141@gmail.com> | 2020-11-08 11:11:49 -0500 |
---|---|---|
committer | Benji Dial <Benji3.141@gmail.com> | 2020-11-08 11:11:49 -0500 |
commit | 21491514b3642a321ce65f2a07428f63c4d9feb5 (patch) | |
tree | cf2384926e9d8e4cb0dcf2c9babd37fc7809c5da /src/user/include | |
parent | 594aeeb09bc24de7064eb1bddf6e86c1a134838e (diff) | |
download | portland-os-21491514b3642a321ce65f2a07428f63c4d9feb5.tar.gz |
manual viewer, "swap colors" system call
Diffstat (limited to 'src/user/include')
-rw-r--r-- | src/user/include/pland/syscall.h | 7 |
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 |