[Simh] Handling Flags in SIMH

Bill Beech (NJ7P) nj7p at nj7p.org
Sun Jul 31 18:59:18 EDT 2011


All,

I am in the middle of revising a couple of routines used by several of 
my newer emulators.  I am trying to make heads or tails of using bits in 
the device and unit flags register.  I have gotten my set_size routine 
to set the bits in each set of flags.  They are offset by UNIT_V_UF and 
DEV_V_UF so they don't interfere with the other bits.  Bits are set 
properly on exit from set_size.  But on reentering set_size, the bits I 
set in unit.flags are cleared.  The bits in dev.flags are still set.  I 
directly manipulate the flag bits in both cases.

Are the bits in unit.flags used to print the default output in a "sh 
device" command?

Is there another way to set the unit.flags so the bits hold across calls 
to set_size?

Thanks!

Bill



More information about the Simh mailing list