mirror of
https://github.com/simh/simh.git
synced 2026-01-26 04:01:38 +00:00
PDP11, VAX: Added ability to set the size of RAUSER devices to be n binary MB (1024*1024) with the -B switch. Added SHOW -B to display drive capacities in binary MB using the SHOW -B switch.
This commit is contained in:
5
scp.c
5
scp.c
@@ -3615,10 +3615,13 @@ return SCPE_OK;
|
||||
void fprint_capac (FILE *st, DEVICE *dptr, UNIT *uptr)
|
||||
{
|
||||
t_addr kval = (uptr->flags & UNIT_BINK)? 1024: 1000;
|
||||
t_addr mval = kval * kval;
|
||||
t_addr mval;
|
||||
t_addr psize = uptr->capac;
|
||||
char scale, width;
|
||||
|
||||
if (sim_switches & SWMASK ('B'))
|
||||
kval = 1024;
|
||||
mval = kval * kval;
|
||||
if (dptr->flags & DEV_SECTORS) {
|
||||
kval = kval / 512;
|
||||
mval = mval / 512;
|
||||
|
||||
Reference in New Issue
Block a user