aboutsummaryrefslogtreecommitdiff
path: root/int33.h
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2022-04-03 21:23:10 +0200
committerJavier <dev.git@javispedro.com>2022-04-03 21:23:10 +0200
commita5abb118e0e61587adfa7b4e4cc72948311381d3 (patch)
treeb226705401bd0b4c78399c621cebc1fbab6003b9 /int33.h
parent7d93442564b57c2d292df7f823c2115d3e0b8c12 (diff)
downloadvbados-a5abb118e0e61587adfa7b4e4cc72948311381d3.tar.gz
vbados-a5abb118e0e61587adfa7b4e4cc72948311381d3.zip
try to handle graphical cursor rendering in a more generic way
Diffstat (limited to 'int33.h')
-rw-r--r--int33.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/int33.h b/int33.h
index 44f61f9..13d5eea 100644
--- a/int33.h
+++ b/int33.h
@@ -16,9 +16,13 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
+
#ifndef INT33_H
#define INT33_H
+#include <stdint.h>
+#include <stdbool.h>
+
enum INT33_API {
/** Reinitializes mouse hardware and resets mouse to default driver values.
* On return, ax = 0xFFFF, bx = number of buttons. */
@@ -185,7 +189,8 @@ static uint16_t int33_reset(void);
#pragma aux int33_reset = \
"mov ax, 0x0" \
"int 0x33" \
- __value [ax]
+ __value [ax] \
+ __modify [ax bx]
static void int33_set_horizontal_window(int16_t min, int16_t max);
#pragma aux int33_set_horizontal_window = \
@@ -221,4 +226,4 @@ static uint16_t int33_get_driver_version(void);
__value [bx] \
__modify [ax bx cx dx]
-#endif
+#endif /* INT33_H */