1
0
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:
Mark Pizzolato
2014-05-16 15:13:56 -07:00
parent c0f9c2e86c
commit 2c0cedcc9c
2 changed files with 10 additions and 4 deletions

5
scp.c
View File

@@ -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;