X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fdoslib%2Fcpu.c;h=8e111690b70a8ce1a4ff79799ae8756467efa3b0;hb=ffd855e814f3aa4f300915ffca12be6f5763e608;hp=9b7caf95c39fc90ea9ad9fc62776a67cd620b4f7;hpb=79b4ebcb955cb173a1391275ae00f8e62360b6d5;p=16.git diff --git a/src/lib/doslib/cpu.c b/src/lib/doslib/cpu.c index 9b7caf95..8e111690 100644 --- a/src/lib/doslib/cpu.c +++ b/src/lib/doslib/cpu.c @@ -40,7 +40,6 @@ #include #include "src/lib/doslib/cpu.h" -//#include /* 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; +}