From 1b88ec0ac27d7cb98580c0b884eaef5605433d6c Mon Sep 17 00:00:00 2001 From: Egor00f Date: Sun, 17 Nov 2024 08:10:14 +0000 Subject: [PATCH] update comments for ksys_draw_bitmap_palette && add .vscode dir to .gitignore Yes, I use vscode. --- .gitignore | 3 +++ contrib/sdk/sources/newlib/libc/include/sys/ksys.h | 8 ++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 668346f52f..111e2100d4 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,6 @@ ehthumbs_vista.db ### macOS ### .DS_Store ._* + +# vscode folder +.vscode/ diff --git a/contrib/sdk/sources/newlib/libc/include/sys/ksys.h b/contrib/sdk/sources/newlib/libc/include/sys/ksys.h index a9c7281e44..36fc2e2904 100644 --- a/contrib/sdk/sources/newlib/libc/include/sys/ksys.h +++ b/contrib/sdk/sources/newlib/libc/include/sys/ksys.h @@ -1223,10 +1223,10 @@ KOSAPI void _ksys_debug_puts(const char* s) KOSAPI void ksys_draw_bitmap_palette(void* bitmap, int x, int y, int w, int h, int bpp, void* palette, int offset) { asm_inline( - "pushl %%ebp\n\t" // save EBP register - "movl %0, %%ebp\n\t" // 0x24 - "offset" param - "int $0x40\n\t" - "popl %%ebp" // restore EBP register + "pushl %%ebp\n\t" // save EBP register + "movl %0, %%ebp\n\t" // mov offset to EBP register + "int $0x40\n\t" // system call + "popl %%ebp" // restore EBP register :: "X"(offset), "a"(65),