PDP7: GRAPHICS2 fix "write button lights" IOT
revert back to what it had been (octal/decimal confusion)
This commit is contained in:
parent
f9d3081cd7
commit
90730088fb
1 changed files with 2 additions and 4 deletions
|
@ -225,20 +225,18 @@ return dat;
|
|||
}
|
||||
|
||||
/* Button Box IOT routine */
|
||||
/* real device could have done bitwise decode? */
|
||||
int32 g2bb_iot (int32 dev, int32 pulse, int32 dat)
|
||||
{
|
||||
if (pulse == 001) { /* "spb" -- skip on push button flag */
|
||||
if (g2bb_flag)
|
||||
dat = dat | IOT_SKP;
|
||||
}
|
||||
else if (pulse == 002) /* "lpb" -- load push buttons */
|
||||
else if (pulse == 002) /* "lpb"/"opb" -- or push buttons */
|
||||
dat = dat | g2bb_bbuf; /* return buttons */
|
||||
else if (pulse == 004) /* "cpb" -- clear push button flag */
|
||||
g2bb_clr_flag (); /* clear flag */
|
||||
else if (pulse == 020) { /* "wbl" -- write buttons lights */
|
||||
else if (pulse == 024) /* "wbl" -- write buttons lights */
|
||||
g2bb_lbuf = dat;
|
||||
}
|
||||
return dat;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue