1
0
mirror of https://github.com/open-simh/simh.git synced 2026-05-01 14:06:14 +00:00

SCP: Clean up WEAK definition and rework deprecated references to sim_vm_init

As discussed in #794
This commit is contained in:
Mark Pizzolato
2020-01-29 12:30:25 -08:00
parent ca4b733883
commit 8a858c181d
32 changed files with 59 additions and 51 deletions

View File

@@ -57,6 +57,7 @@ extern int IAS_TimingRing;
extern int WriteAddr(int AR, t_int64 d, int NegZero);
extern int ReadAddr(int AR, t_int64 * d, int * NegZero);
extern CONST char * DecodeOpcode(t_int64 d, int * opcode, int * DA, int * IA);
extern void vm_init(void);
/* digits contants */

View File

@@ -177,6 +177,11 @@ uint16 ascii_to_hol[128] = {
void
vm_init(void) {
int i;
static int initialized = 0;
if (initialized)
return;
initialized = 1;
// Initialize vm memory to all plus zero
for(i = 0; i < MAXDRUMSIZE; i++) DRUM[i] = DRUM_NegativeZeroFlag[i] = 0;
for(i = 0; i < 60; i++) IAS[i] = IAS_NegativeZeroFlag[i] = 0;
@@ -186,8 +191,6 @@ vm_init(void) {
}
void (*sim_vm_init) (void) = &vm_init;
/* Load a card image file into memory. */
t_stat