mirror of
https://github.com/open-simh/simh.git
synced 2026-01-13 15:27:46 +00:00
PDP11, VAX: Provide a useful error message when the unimplemented DUMP command is attempted.
This commit is contained in:
parent
c8c071e3e1
commit
a9cc1f1c68
@ -243,8 +243,10 @@ t_stat sim_load (FILE *fileref, char *cptr, char *fnam, int flag)
|
||||
int32 c[6], d, i, cnt, csum;
|
||||
uint32 org;
|
||||
|
||||
if ((*cptr != 0) || (flag != 0))
|
||||
if (*cptr != 0)
|
||||
return SCPE_ARG;
|
||||
if (flag != 0)
|
||||
return sim_messagef (SCPE_NOFNC, "Command Not Implemented\n");
|
||||
do { /* block loop */
|
||||
csum = 0; /* init checksum */
|
||||
for (i = 0; i < 6; ) { /* 6 char header */
|
||||
|
||||
@ -109,7 +109,7 @@ int32 i;
|
||||
uint32 origin, limit;
|
||||
|
||||
if (flag) /* dump? */
|
||||
return SCPE_ARG;
|
||||
return sim_messagef (SCPE_NOFNC, "Command Not Implemented\n");
|
||||
origin = 0; /* memory */
|
||||
limit = (uint32) cpu_unit.capac;
|
||||
if (sim_switches & SWMASK ('O')) { /* origin? */
|
||||
|
||||
@ -125,7 +125,7 @@ int32 i;
|
||||
uint32 origin, limit, step = 1;
|
||||
|
||||
if (flag) /* dump? */
|
||||
return SCPE_ARG;
|
||||
return sim_messagef (SCPE_NOFNC, "Command Not Implemented\n");
|
||||
if (sim_switches & SWMASK ('R')) { /* ROM? */
|
||||
origin = ROMBASE;
|
||||
limit = ROMBASE + ROMSIZE;
|
||||
|
||||
@ -108,7 +108,7 @@ int32 val;
|
||||
uint32 origin, limit;
|
||||
|
||||
if (flag) /* dump? */
|
||||
return SCPE_ARG;
|
||||
return sim_messagef (SCPE_NOFNC, "Command Not Implemented\n");
|
||||
origin = 0; /* memory */
|
||||
limit = (uint32) cpu_unit.capac;
|
||||
if (sim_switches & SWMASK ('O')) { /* origin? */
|
||||
|
||||
@ -112,7 +112,7 @@ int32 val;
|
||||
uint32 origin, limit;
|
||||
|
||||
if (flag) /* dump? */
|
||||
return SCPE_ARG;
|
||||
return sim_messagef (SCPE_NOFNC, "Command Not Implemented\n");
|
||||
origin = 0; /* memory */
|
||||
limit = (uint32) cpu_unit.capac;
|
||||
if (sim_switches & SWMASK ('R')) { /* ROM? */
|
||||
|
||||
@ -122,7 +122,7 @@ int32 val;
|
||||
uint32 origin, limit;
|
||||
|
||||
if (flag) /* dump? */
|
||||
return SCPE_ARG;
|
||||
return sim_messagef (SCPE_NOFNC, "Command Not Implemented\n");
|
||||
origin = 0; /* memory */
|
||||
limit = (uint32) cpu_unit.capac;
|
||||
if (sim_switches & SWMASK ('O')) { /* origin? */
|
||||
|
||||
@ -118,7 +118,7 @@ int32 val;
|
||||
uint32 origin, limit;
|
||||
|
||||
if (flag) /* dump? */
|
||||
return SCPE_ARG;
|
||||
return sim_messagef (SCPE_NOFNC, "Command Not Implemented\n");
|
||||
origin = 0; /* memory */
|
||||
limit = (uint32) cpu_unit.capac;
|
||||
if (sim_switches & SWMASK ('O')) { /* origin? */
|
||||
|
||||
@ -120,7 +120,7 @@ extern int32 ssc_cnf;
|
||||
#define SSCCNF_BLO 0x80000000
|
||||
|
||||
if (flag) /* dump? */
|
||||
return SCPE_ARG;
|
||||
return sim_messagef (SCPE_NOFNC, "Command Not Implemented\n");
|
||||
if (sim_switches & SWMASK ('R')) { /* ROM? */
|
||||
origin = ROMBASE;
|
||||
limit = ROMBASE + ROMSIZE;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user