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

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];