diff options
Diffstat (limited to 'yotk32/yotk32.h')
-rw-r--r-- | yotk32/yotk32.h | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/yotk32/yotk32.h b/yotk32/yotk32.h index 289b7ee..2cd5938 100644 --- a/yotk32/yotk32.h +++ b/yotk32/yotk32.h @@ -26,11 +26,6 @@ void putint(unsigned long); /* 以 10 進位顯示一個 word (unsigned) void putcharhex(char); /* 以 16 進位顯示一個 byte */ void putstr(const char*); /* 顯示一個字串,'\0' 是結束 */ -/* char_in.s */ -#define GETCH_SCANCODE(code16) (((code16) & 0xff00) >> 8) -#define GETCH_ASCII(code16) ((code16) & 0x00ff) -int getch(void); - /* char_vga.s + char_vhl.c */ #define CHAR_VGA_POSITION(x,y) (((y)*80)+(x)) #define CHAR_VGA_GETX(n) ((n)%80) @@ -91,61 +86,6 @@ void chv_scroll(int); int char_vga_get_cursor(void); void char_vga_set_cursor(int); -/* keyboard scan codes */ -#define KEYDOWN_SCANCODE_ESC 0x01 -#define KEYDOWN_SCANCODE_BS 0x0e -#define KEYDOWN_SCANCODE_TAB 0x0f -#define KEYDOWN_SCANCODE_ENTER 0x1c -#define KEYDOWN_SCANCODE_CTRL 0x1d -#define KEYDOWN_SCANCODE_LEFT_SHIFT 0x2a -#define KEYDOWN_SCANCODE_RIGHT_SHIFT 0x36 -#define KEYDOWN_SCANCODE_PRINT_SCREEN 0x37 -#define KEYDOWN_SCANCODE_ALT 0x38 -#define KEYDOWN_SCANCODE_SPACE 0x39 -#define KEYDOWN_SCANCODE_CAPS_LOCK 0x3a -#define KEYDOWN_SCANCODE_FUNCTION(n) (0x3a+(n)) /* F1 ~ F10,其他不適用 */ -#define KEYDOWN_SCANCODE_NUM_LOCK 0x45 -#define KEYDOWN_SCANCODE_SCROLL_LOCK 0x46 -#define KEYDOWN_SCANCODE_HOME 0x47 -#define KEYDOWN_SCANCODE_UP 0x48 -#define KEYDOWN_SCANCODE_PAGE_UP 0x49 -#define KEYDOWN_SCANCODE_LEFT 0x4b -#define KEYDOWN_SCANCODE_RIGHT 0x4d -#define KEYDOWN_SCANCODE_END 0x4f -#define KEYDOWN_SCANCODE_DOWN 0x50 -#define KEYDOWN_SCANCODE_PAGE_DOWN 0x51 -#define KEYDOWN_SCANCODE_INSERT 0x52 -#define KEYDOWN_SCANCODE_DELETE 0x53 - -/* keypad */ -#define KEYDOWN_SCANCODE_KEYPAD_ENTER 0x1c -#define KEYDOWN_SCANCODE_KEYPAD_SLASH 0x35 -#define KEYDOWN_SCANCODE_KEYPAD_STAR 0x37 -#define KEYDOWN_SCANCODE_KEYPAD_7 0x47 -#define KEYDOWN_SCANCODE_KEYPAD_8 0x48 -#define KEYDOWN_SCANCODE_KEYPAD_9 0x49 -#define KEYDOWN_SCANCODE_KEYPAD_MINUS 0x4a -#define KEYDOWN_SCANCODE_KEYPAD_4 0x4b -#define KEYDOWN_SCANCODE_KEYPAD_5 0x4c -#define KEYDOWN_SCANCODE_KEYPAD_6 0x4d -#define KEYDOWN_SCANCODE_KEYPAD_ADD 0x4e -#define KEYDOWN_SCANCODE_KEYPAD_1 0x4f -#define KEYDOWN_SCANCODE_KEYPAD_2 0x50 -#define KEYDOWN_SCANCODE_KEYPAD_3 0x51 -#define KEYDOWN_SCANCODE_KEYPAD_0 0x52 -#define KEYDOWN_SCANCODE_KEYPAD_DOT 0x53 - -/* str_in.c */ -int getstr(char*, int, int); -/* 讀入一行的函式 - * ARG1 = 要存到哪裡 - * ARG2 = 最多可以讀多長('\0' 不計入,但要自行保留空間) - * RVAL = 實際讀了幾個字 */ - -int yotrl(char*, const char*, int, int); -/* 同上,但是是進階版 */ - - /* strbasic.c */ int strcmp(const char*, const char*); int strtos(const char*, unsigned int*); |