aboutsummaryrefslogtreecommitdiff
path: root/int33.h
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2024-06-02 20:54:46 +0200
committerJavier <dev.git@javispedro.com>2024-06-02 20:54:46 +0200
commit6def163aa0a11996d2f990fb18690a83b5e605a6 (patch)
treed3a667b036045147b54f1e7c5256f78672faf400 /int33.h
parent802e8f3d32a4a497538431863a3ab178543815b6 (diff)
downloadvbados-6def163aa0a11996d2f990fb18690a83b5e605a6.tar.gz
vbados-6def163aa0a11996d2f990fb18690a83b5e605a6.zip
add new moustest program for testing
Diffstat (limited to 'int33.h')
-rw-r--r--int33.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/int33.h b/int33.h
index f7a469d..2755379 100644
--- a/int33.h
+++ b/int33.h
@@ -214,6 +214,29 @@ static uint16_t int33_reset(void);
__value [ax] \
__modify [ax bx]
+static bool int33_reset_get_buttons(uint16_t *num_buttons);
+#pragma aux int33_reset_get_buttons = \
+ "mov ax, 0x0" \
+ "int 0x33" \
+ "mov [di], bx" \
+ "cmp ax, 0xFFFF" \
+ "sete ah" \
+ __parm [di] \
+ __value [ah] \
+ __modify [ax bx]
+
+static void int33_show_cursor(void);
+#pragma aux int33_show_cursor = \
+ "mov ax, 0x1" \
+ "int 0x33" \
+ __modify [ax]
+
+static void int33_hide_cursor(void);
+#pragma aux int33_hide_cursor = \
+ "mov ax, 0x2" \
+ "int 0x33" \
+ __modify [ax]
+
static void int33_set_horizontal_window(int16_t min, int16_t max);
#pragma aux int33_set_horizontal_window = \
"mov ax, 0x7" \
@@ -309,4 +332,14 @@ static uint16_t int33_get_capabilities(void);
__value [cx] \
__modify [ax bx cx]
+static const char __far * int33_get_version_string(void);
+#pragma aux int33_get_version_string = \
+ "xor ax, ax" \
+ "mov di, ax" \
+ "mov es, ax" \
+ "mov ax, 0x6d" \
+ "int 0x33" \
+ __value [es di] \
+ __modify [ax]
+
#endif /* INT33_H */