1
0
mirror of https://github.com/simh/simh.git synced 2026-02-26 08:44:38 +00:00

VAX: Clarify running from ROM test when reading todr_rd

This change only simplifies reading the code.  The functional results
are unchanged
This commit is contained in:
Mark Pizzolato
2024-05-21 04:07:00 -10:00
parent b19cc2b8ef
commit 5d10f2c724

View File

@@ -470,7 +470,7 @@ int32 todr_rd (void)
TOY *toy = (TOY *)clk_unit.filebuf;
struct timespec base, now, val;
if ((fault_PC&0xFFFE0000) == 0x20040000) { /* running from ROM? */
if (ADDR_IS_ROM(fault_PC)) { /* running from ROM? */
sim_debug (DBG_REG, &clk_dev, "todr_rd(ROM) - TODR=0x%X\n", todr_reg);
return todr_reg; /* return counted value for ROM diags */
}