diff options
author | Jaroslav Hensl <jara@hensl.cz> | 2023-08-26 20:31:44 +0200 |
---|---|---|
committer | Jaroslav Hensl <jara@hensl.cz> | 2023-08-26 20:31:44 +0200 |
commit | 313656bf15572becdb3c3ab2183fcd8a009ad2e8 (patch) | |
tree | 074831497877ecf851b82f8a04426f3cdc3e3fff /dpmi.h | |
parent | fc27a94c851ac47687a9c4dd0ca50f47674fc223 (diff) | |
download | vmdisp9x-313656bf15572becdb3c3ab2183fcd8a009ad2e8.tar.gz |
SVGA: HW cursor (enabled by default)
Diffstat (limited to 'dpmi.h')
-rw-r--r-- | dpmi.h | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -56,8 +56,18 @@ extern DWORD DPMI_AllocMemBlk(DWORD Size); "alloc_ok:" \
"mov dx, bx" \
"mov ax, cx" \
- parm [cx bx] modify [di si];
-
+ parm [cx bx] modify [ax di si];
+
+extern WORD DPMI_FreeMemBlk(DWORD ptr);
+#pragma aux DPMI_FreeMemBlk = \
+ "xchg di, si" \
+ "mov ax, 502h" \
+ "int 31h" \
+ "jc free_error" \
+ "xor ax, ax" \
+ "free_error:" \
+ parm [di si] modify [ax];
+
static DWORD DPMI_AllocLinBlk_LinAddress = 0;
static DWORD DPMI_AllocLinBlk_MHandle = 0;
|