This commit is contained in:
Mario Fetka
2026-05-23 19:15:35 +02:00
parent d93e6a7fbd
commit 4e025b2e5e
2 changed files with 29 additions and 2 deletions

6
kern.h
View File

@@ -3,6 +3,10 @@
#define KERN_CALL _Cdecl
#else
#define KERN_CALL
extern int KERN_CALL Net_Call_NWCVLMREQ(UI flags, void *regblk,
UI p1, UI p2, UI p3);
#endif
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,
void *req, void *repl,
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_CX(UI func, UI bx, UI cx, UI dx,
void *req, void *repl);

View File

@@ -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)
{
uint8 regs[16];