mirror of
https://github.com/simh/simh.git
synced 2026-05-05 15:33:34 +00:00
I1620, I1401: Add max value to address registers
This commit is contained in:
committed by
Mark Pizzolato
parent
39c4610971
commit
c55139c0a8
@@ -1,6 +1,6 @@
|
||||
/* i1620_cpu.c: IBM 1620 CPU simulator
|
||||
|
||||
Copyright (c) 2002-2018, Robert M. Supnik
|
||||
Copyright (c) 2002-2021, Robert M. Supnik
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a
|
||||
copy of this software and associated documentation files (the "Software"),
|
||||
@@ -26,6 +26,7 @@
|
||||
This CPU module incorporates code and comments from the 1620 simulator by
|
||||
Geoff Kuenning, with his permission.
|
||||
|
||||
01-Feb-21 RMS Added max value to address registers
|
||||
05-Jun-18 RMS Fixed bug in select index A (COVERITY)
|
||||
23-Jun-17 RMS BS should not enable indexing unless configured
|
||||
15-Jun-17 RMS Added more information to IO in progress message
|
||||
@@ -234,10 +235,10 @@ extern t_stat fp_fsr (uint32 d, uint32 s);
|
||||
UNIT cpu_unit = { UDATA (NULL, UNIT_FIX+UNIT_BCD+MI_STD, MAXMEMSIZE) };
|
||||
|
||||
REG cpu_reg[] = {
|
||||
{ DRDATA (PC, saved_PC, 16), PV_LEFT },
|
||||
{ DRDATA (APC, actual_PC, 16), PV_LEFT + REG_HRO },
|
||||
{ DRDATAD (IR2, IR2, 16, "instruction storage address register (PC)"), PV_LEFT },
|
||||
{ DRDATAD (PR1, PR1, 16, "processor register 1"), PV_LEFT },
|
||||
{ DRDATA (PC, saved_PC, 16), PV_LEFT, MAXADDR },
|
||||
{ DRDATA (APC, actual_PC, 16), PV_LEFT + REG_HRO, MAXADDR },
|
||||
{ DRDATAD (IR2, IR2, 16, "instruction storage address register (PC)"), PV_LEFT, MAXADDR },
|
||||
{ DRDATAD (PR1, PR1, 16, "processor register 1"), PV_LEFT, MAXADDR },
|
||||
{ DRDATAD (PAR, PAR, 16, "P address register (OR2)"), PV_LEFT + REG_RO },
|
||||
{ DRDATAD (QAR, QAR, 16, "Q address register (OR1)"), PV_LEFT + REG_RO },
|
||||
{ FLDATAD (SW1, ind[IN_SW1], 0, "sense switch 1" ) },
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/* i1620_defs.h: IBM 1620 simulator definitions
|
||||
|
||||
Copyright (c) 2002-2017, Robert M. Supnik
|
||||
Copyright (c) 2002-2021, Robert M. Supnik
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a
|
||||
copy of this software and associated documentation files (the "Software"),
|
||||
@@ -27,6 +27,7 @@
|
||||
I am grateful to Al Kossow, the Computer History Museum, and the IBM Corporate
|
||||
Archives for their help in gathering documentation about the IBM 1620.
|
||||
|
||||
01-Feb-21 RMS Added MAXADDR for register contents
|
||||
23-May-17 RMS MARCHK is indicator 8, not 18 (Dave Wise)
|
||||
19-May-17 RMS Added option for Model I diagnostic mode (Dave Wise)
|
||||
05-Feb-15 TFM Added definitions for flagged RM, GM, NB
|
||||
@@ -88,6 +89,7 @@
|
||||
/* Memory */
|
||||
|
||||
#define MAXMEMSIZE 60000 /* max mem size */
|
||||
#define MAXADDR (MAXMEMSIZE - 1) /* max address */
|
||||
#define MEMSIZE (cpu_unit.capac) /* act memory size */
|
||||
|
||||
/* Processor parameters */
|
||||
|
||||
Reference in New Issue
Block a user