]> 4ch.mooo.com Git - 16.git/blobdiff - src/lib/doslib/cpu.c
vgamodex uses gvar now!
[16.git] / src / lib / doslib / cpu.c
index 9b7caf95c39fc90ea9ad9fc62776a67cd620b4f7..8e111690b70a8ce1a4ff79799ae8756467efa3b0 100644 (file)
@@ -40,7 +40,6 @@
 #include <dos.h>
 
 #include "src/lib/doslib/cpu.h"
-//#include <hw/dos/dos.h>
 
 /* DEBUG: Flush out calls that aren't there */
 #ifdef TARGET_OS2
@@ -155,3 +154,28 @@ void cpu_probe() {
 #endif
 }
 
+int cpu_basic_probe()
+{
+       __asm
+       {
+       push            bx
+       push            cx
+       push            dx
+       push            si
+       push            di
+       push            bp
+// BUGFIX: Calling near a function that returns far is like taking a long walk off a short pier
+//     push            cs
+
+//     call            cpu_basic_probe_f_
+
+       pop             bp
+       pop             di
+       pop             si
+       pop             dx
+       pop             cx
+       pop             bx
+       //retnative
+       }
+       return 0;
+}