PREVSTATE
PREVSTATE = STATE;
} else if (stat0 & SELDI && PREVSTATE == busfree) {
if(STATE!=PREVSTATE) {
LASTSTATE=PREVSTATE;
if(PREVSTATE!=STATE && states[PREVSTATE].end)
states[PREVSTATE].end(shpnt);
if(states[PREVSTATE].spio && !states[STATE].spio) {
if(!states[PREVSTATE].spio && states[STATE].spio) {
if(PREVSTATE!=STATE && states[STATE].init)
if(PREVSTATE!=STATE)
seq_printf(m, "\n%s: %s(%s) ", CURRENT_SC ? "on bus" : "waiting", states[STATE].name, states[PREVSTATE].name);