aboutsummaryrefslogtreecommitdiff
path: root/int16kbd.h
diff options
context:
space:
mode:
Diffstat (limited to 'int16kbd.h')
-rw-r--r--int16kbd.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/int16kbd.h b/int16kbd.h
new file mode 100644
index 0000000..45db8ef
--- /dev/null
+++ b/int16kbd.h
@@ -0,0 +1,12 @@
+#ifndef INT16KBD_H
+#define INT16KBD_H
+
+static bool int16_store_keystroke(uint16_t scancode);
+#pragma aux int16_store_keystroke = \
+ "mov ah, 0x05" \
+ "int 0x16" \
+ __parm [cx] \
+ __value [al] \
+ __modify [ax]
+
+#endif // INT16KBD_H