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

PDP11, PDP10, AltairZ80: Fixed cases where assert() macro is called with an expression which has side effects and therefore wouldn't get executed if compiled with NDEBUG defined.

This commit is contained in:
Mark Pizzolato
2014-03-01 17:15:10 -08:00
parent 5217c6148b
commit a15858315a
6 changed files with 39 additions and 33 deletions

View File

@@ -306,7 +306,7 @@ static t_stat dsk_reset(DEVICE *dptr) {
}
void install_ALTAIRbootROM(void) {
assert(install_bootrom(bootrom_dsk, BOOTROM_SIZE_DSK, ALTAIR_ROM_LOW, TRUE) == SCPE_OK);
ASSURE(install_bootrom(bootrom_dsk, BOOTROM_SIZE_DSK, ALTAIR_ROM_LOW, TRUE) == SCPE_OK);
}
/* The boot routine modifies the boot ROM in such a way that subsequently

View File

@@ -609,7 +609,7 @@ static t_stat hdsk_boot(int32 unitno, DEVICE *dptr) {
}
install_ALTAIRbootROM(); /* install modified ROM */
}
assert(install_bootrom(bootrom_hdsk, BOOTROM_SIZE_HDSK, HDSK_BOOT_ADDRESS, FALSE) == SCPE_OK);
ASSURE(install_bootrom(bootrom_hdsk, BOOTROM_SIZE_HDSK, HDSK_BOOT_ADDRESS, FALSE) == SCPE_OK);
*((int32 *) sim_PC -> loc) = HDSK_BOOT_ADDRESS;
return SCPE_OK;
}