From 51cdb6b523be973e802cc940c6ac54cc8a50b802 Mon Sep 17 00:00:00 2001 From: Javier Date: Tue, 5 Apr 2022 22:24:47 +0200 Subject: add vmware support, debug logging to serial port, and fix ps2 routine clobbering registers --- ps2.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'ps2.h') diff --git a/ps2.h b/ps2.h index 717ab84..ffcf7bb 100644 --- a/ps2.h +++ b/ps2.h @@ -80,12 +80,8 @@ enum ps2m_sample_rate { PS2M_SAMPLE_RATE_200 = 6 }; -#pragma aux PS2_CB far loadds parm reverse caller [] -// TODO: ax and es look not be preserved with this. VBox BIOS already preserves them though, as well as 32-bit registers - -/** Invoked by the BIOS when there is a mouse event. - * @param status combination of PS2M_STATUS_* flags */ -typedef void (__far * LPFN_PS2CALLBACK)(uint8_t status, uint8_t x, uint8_t y, uint8_t z); +/** Invoked by the BIOS when there is a mouse event. */ +typedef void (__far * LPFN_PS2CALLBACK)(); static ps2m_err ps2m_init(uint8_t packet_size); #pragma aux ps2m_init = \ -- cgit v1.2.3