tests
This commit is contained in:
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)
|
||||
{
|
||||
uint8 regs[16];
|
||||
|
||||
Reference in New Issue
Block a user