tests
This commit is contained in:
6
kern.h
6
kern.h
@@ -3,6 +3,10 @@
|
|||||||
#define KERN_CALL _Cdecl
|
#define KERN_CALL _Cdecl
|
||||||
#else
|
#else
|
||||||
#define KERN_CALL
|
#define KERN_CALL
|
||||||
|
|
||||||
|
extern int KERN_CALL Net_Call_NWCVLMREQ(UI flags, void *regblk,
|
||||||
|
UI p1, UI p2, UI p3);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern int KERN_CALL IPXinit(void);
|
extern int KERN_CALL IPXinit(void);
|
||||||
@@ -26,8 +30,6 @@ extern int KERN_CALL C32_NCP87_Raw_Probe(UI connLo, UI connHi,
|
|||||||
extern int KERN_CALL Net_Call_VLM_Raw(UI ax, UI bx, UI cx, UI dx,
|
extern int KERN_CALL Net_Call_VLM_Raw(UI ax, UI bx, UI cx, UI dx,
|
||||||
void *req, void *repl,
|
void *req, void *repl,
|
||||||
UI p1, UI p2, UI p3);
|
UI p1, UI p2, UI p3);
|
||||||
extern int KERN_CALL Net_Call_NWCVLMREQ(UI flags, void *regblk,
|
|
||||||
UI p1, UI p2, UI p3);
|
|
||||||
extern int KERN_CALL Net_Call_C(UI func, void *req, void *repl);
|
extern int KERN_CALL Net_Call_C(UI func, void *req, void *repl);
|
||||||
extern int KERN_CALL Net_Call_CX(UI func, UI bx, UI cx, UI dx,
|
extern int KERN_CALL Net_Call_CX(UI func, UI bx, UI cx, UI dx,
|
||||||
void *req, void *repl);
|
void *req, void *repl);
|
||||||
|
|||||||
25
nwtests.c
25
nwtests.c
@@ -1407,6 +1407,31 @@ static int tests_nwreq87c32matrix(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
static void tests_set_reg_word(uint8 *r, int off, UI val)
|
||||||
|
{
|
||||||
|
tests_put_word_lh(r + off, (uint16)val);
|
||||||
|
}
|
||||||
|
|
||||||
|
static UI tests_get_reg_word(uint8 *r, int off)
|
||||||
|
{
|
||||||
|
return (UI)(r[off] | ((UI)r[off + 1] << 8));
|
||||||
|
}
|
||||||
|
|
||||||
|
static void tests_dump_vlm_regs(char *title, uint8 *r)
|
||||||
|
{
|
||||||
|
fprintf(stdout, "%s SI=%04X DS=%04X DI=%04X ES=%04X AX=%04X BX=%04X CX=%04X DX=%04X\n",
|
||||||
|
title,
|
||||||
|
tests_get_reg_word(r, 0),
|
||||||
|
tests_get_reg_word(r, 2),
|
||||||
|
tests_get_reg_word(r, 4),
|
||||||
|
tests_get_reg_word(r, 6),
|
||||||
|
tests_get_reg_word(r, 8),
|
||||||
|
tests_get_reg_word(r, 10),
|
||||||
|
tests_get_reg_word(r, 12),
|
||||||
|
tests_get_reg_word(r, 14));
|
||||||
|
}
|
||||||
|
|
||||||
static int tests_c32primref(void)
|
static int tests_c32primref(void)
|
||||||
{
|
{
|
||||||
uint8 regs[16];
|
uint8 regs[16];
|
||||||
|
|||||||
Reference in New Issue
Block a user