Updated year in copyright and implemented sim_vm_pc_value
This commit is contained in:
parent
5b2f229bb0
commit
1d35a4f612
8 changed files with 21 additions and 11 deletions
|
@ -1,6 +1,6 @@
|
||||||
/* altairz80_cpu.c: MITS Altair CPU (8080 and Z80)
|
/* altairz80_cpu.c: MITS Altair CPU (8080 and Z80)
|
||||||
|
|
||||||
Copyright (c) 2002-2013, Peter Schorn
|
Copyright (c) 2002-2014, Peter Schorn
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a
|
Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
copy of this software and associated documentation files (the "Software"),
|
copy of this software and associated documentation files (the "Software"),
|
||||||
|
@ -6508,7 +6508,8 @@ static t_stat cpu_show(FILE *st, UNIT *uptr, int32 val, void *desc) {
|
||||||
|
|
||||||
static void cpu_clear(void) {
|
static void cpu_clear(void) {
|
||||||
uint32 i;
|
uint32 i;
|
||||||
for (i = 0; i < MAXMEMORY; i++) M[i] = 0;
|
for (i = 0; i < MAXMEMORY; i++)
|
||||||
|
M[i] = 0;
|
||||||
for (i = 0; i < (MAXMEMORY >> LOG2PAGESIZE); i++)
|
for (i = 0; i < (MAXMEMORY >> LOG2PAGESIZE); i++)
|
||||||
mmu_table[i] = RAM_PAGE;
|
mmu_table[i] = RAM_PAGE;
|
||||||
for (i = (MEMORYSIZE >> LOG2PAGESIZE); i < (MAXMEMORY >> LOG2PAGESIZE); i++)
|
for (i = (MEMORYSIZE >> LOG2PAGESIZE); i < (MAXMEMORY >> LOG2PAGESIZE); i++)
|
||||||
|
@ -6852,9 +6853,14 @@ static t_stat cpu_set_memory(UNIT *uptr, int32 value, char *cptr, void *desc) {
|
||||||
return SCPE_ARG;
|
return SCPE_ARG;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
t_value altairz80_pc_value (void) {
|
||||||
|
return (t_value)PCX;
|
||||||
|
}
|
||||||
|
|
||||||
/* AltairZ80 Simulator initialization */
|
/* AltairZ80 Simulator initialization */
|
||||||
void altairz80_init(void) {
|
void altairz80_init(void) {
|
||||||
cpu_clear();
|
cpu_clear();
|
||||||
|
sim_vm_pc_value = &altairz80_pc_value;
|
||||||
/* altairz80_print_tables(); */
|
/* altairz80_print_tables(); */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* altairz80_cpu_opt.c: MITS Altair CPU (8080 and Z80)
|
/* altairz80_cpu_opt.c: MITS Altair CPU (8080 and Z80)
|
||||||
|
|
||||||
Copyright (c) 2002-2013, Peter Schorn
|
Copyright (c) 2002-2014, Peter Schorn
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a
|
Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
copy of this software and associated documentation files (the "Software"),
|
copy of this software and associated documentation files (the "Software"),
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* altairz80_defs.h: MITS Altair simulator definitions
|
/* altairz80_defs.h: MITS Altair simulator definitions
|
||||||
|
|
||||||
Copyright (c) 2002-2013, Peter Schorn
|
Copyright (c) 2002-2014, Peter Schorn
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a
|
Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
copy of this software and associated documentation files (the "Software"),
|
copy of this software and associated documentation files (the "Software"),
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* altairz80_dsk.c: MITS Altair 88-DISK Simulator
|
/* altairz80_dsk.c: MITS Altair 88-DISK Simulator
|
||||||
|
|
||||||
Copyright (c) 2002-2013, Peter Schorn
|
Copyright (c) 2002-2014, Peter Schorn
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a
|
Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
copy of this software and associated documentation files (the "Software"),
|
copy of this software and associated documentation files (the "Software"),
|
||||||
|
@ -306,7 +306,9 @@ static t_stat dsk_reset(DEVICE *dptr) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void install_ALTAIRbootROM(void) {
|
void install_ALTAIRbootROM(void) {
|
||||||
ASSURE(install_bootrom(bootrom_dsk, BOOTROM_SIZE_DSK, ALTAIR_ROM_LOW, TRUE) == SCPE_OK);
|
const t_bool result = (install_bootrom(bootrom_dsk, BOOTROM_SIZE_DSK, ALTAIR_ROM_LOW, TRUE) ==
|
||||||
|
SCPE_OK);
|
||||||
|
assert(result);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* The boot routine modifies the boot ROM in such a way that subsequently
|
/* The boot routine modifies the boot ROM in such a way that subsequently
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* altairz80_hdsk.c: simulated hard disk device to increase capacity
|
/* altairz80_hdsk.c: simulated hard disk device to increase capacity
|
||||||
|
|
||||||
Copyright (c) 2002-2013, Peter Schorn
|
Copyright (c) 2002-2014, Peter Schorn
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a
|
Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
copy of this software and associated documentation files (the "Software"),
|
copy of this software and associated documentation files (the "Software"),
|
||||||
|
@ -609,7 +609,9 @@ static t_stat hdsk_boot(int32 unitno, DEVICE *dptr) {
|
||||||
}
|
}
|
||||||
install_ALTAIRbootROM(); /* install modified ROM */
|
install_ALTAIRbootROM(); /* install modified ROM */
|
||||||
}
|
}
|
||||||
ASSURE(install_bootrom(bootrom_hdsk, BOOTROM_SIZE_HDSK, HDSK_BOOT_ADDRESS, FALSE) == SCPE_OK);
|
const t_bool result = (install_bootrom(bootrom_hdsk, BOOTROM_SIZE_HDSK, HDSK_BOOT_ADDRESS,
|
||||||
|
FALSE) == SCPE_OK);
|
||||||
|
assert(result);
|
||||||
*((int32 *) sim_PC -> loc) = HDSK_BOOT_ADDRESS;
|
*((int32 *) sim_PC -> loc) = HDSK_BOOT_ADDRESS;
|
||||||
return SCPE_OK;
|
return SCPE_OK;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* altairz80_net.c: networking capability
|
/* altairz80_net.c: networking capability
|
||||||
|
|
||||||
Copyright (c) 2002-2013, Peter Schorn
|
Copyright (c) 2002-2014, Peter Schorn
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a
|
Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
copy of this software and associated documentation files (the "Software"),
|
copy of this software and associated documentation files (the "Software"),
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* altairz80_sio.c: MITS Altair serial I/O card
|
/* altairz80_sio.c: MITS Altair serial I/O card
|
||||||
|
|
||||||
Copyright (c) 2002-2013, Peter Schorn
|
Copyright (c) 2002-2014, Peter Schorn
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a
|
Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
copy of this software and associated documentation files (the "Software"),
|
copy of this software and associated documentation files (the "Software"),
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
IMSAI FIF Disk Controller by Ernie Price
|
IMSAI FIF Disk Controller by Ernie Price
|
||||||
|
|
||||||
Based on altairz80_dsk.c, Copyright (c) 2002-2013, Peter Schorn
|
Based on altairz80_dsk.c, Copyright (c) 2002-2014, Peter Schorn
|
||||||
|
|
||||||
Plug-n-Play added by Howard M. Harte
|
Plug-n-Play added by Howard M. Harte
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue