mirror of
https://github.com/pkimpel/retro-220.git
synced 2026-01-11 23:52:46 +00:00
Commit emulator version 1.00a
1. Improve brightness of blue panel lamps. 2. Add checkbox to Mag Tape Load Panel dialog to automatically set Transport Power on the drive to ON when the dialog is closed.
This commit is contained in:
parent
83a0b62faf
commit
e71a4da0cd
@ -260,7 +260,7 @@ function B220Processor(config, devices) {
|
||||
* Global Constants *
|
||||
***********************************************************************/
|
||||
|
||||
B220Processor.version = "1.00";
|
||||
B220Processor.version = "1.00a";
|
||||
|
||||
B220Processor.tick = 1000/200000; // milliseconds per clock cycle (200KHz)
|
||||
B220Processor.cyclesPerMilli = 1/B220Processor.tick;
|
||||
|
||||
@ -237,19 +237,19 @@ DIV.blueLamp {
|
||||
height: 24px;
|
||||
font-size: 4px;
|
||||
border-radius: 50%;
|
||||
background-image: radial-gradient(circle, #009, #003)}
|
||||
background-image: radial-gradient(circle, #009, #007, #003)}
|
||||
DIV.blueLit1 {
|
||||
background-image: radial-gradient(circle, #11A, #006)}
|
||||
background-image: radial-gradient(circle, #11A, #009, #006)}
|
||||
DIV.blueLit2 {
|
||||
background-image: radial-gradient(circle, #22B, #009)}
|
||||
background-image: radial-gradient(circle, #22B, #11A, #009)}
|
||||
DIV.blueLit3 {
|
||||
background-image: radial-gradient(circle, #33C, #00A)}
|
||||
background-image: radial-gradient(circle, #33C, #22B, #00A)}
|
||||
DIV.blueLit4 {
|
||||
background-image: radial-gradient(circle, #55D, #00C)}
|
||||
background-image: radial-gradient(circle, #55D, #44C, #00C)}
|
||||
DIV.blueLit5 {
|
||||
background-image: radial-gradient(circle, #77E, #00D)}
|
||||
background-image: radial-gradient(circle, #77E, #55D, #00D)}
|
||||
DIV.blueLit {
|
||||
background-image: radial-gradient(circle, #99F, #00F)}
|
||||
background-image: radial-gradient(circle, #99F, #77E, #00F)}
|
||||
|
||||
DIV.coloredLampTopCaption {
|
||||
position: absolute;
|
||||
|
||||
@ -360,6 +360,16 @@ B220MagTapeDrive.prototype.setTapeReady = function setTapeReady(makeReady) {
|
||||
}
|
||||
};
|
||||
|
||||
/**************************************/
|
||||
B220MagTapeDrive.prototype.setTransportPower = function setTransportPower(toOn) {
|
||||
/* Sets Transport Power for the drive to On or Standby */
|
||||
|
||||
this.powerOn = toOn && (this.tapeState != this.tapeUnloaded);
|
||||
this.transportOnLamp.set(this.powerOn ? 1 : 0);
|
||||
this.transportStandbyLamp.set(this.powerOn ? 0 : 1);
|
||||
this.setTapeReady(this.powerOn);
|
||||
};
|
||||
|
||||
/**************************************/
|
||||
B220MagTapeDrive.prototype.setTapeUnloaded = function setTapeUnloaded() {
|
||||
/* Controls the loaded/unloaded-state of the tape drive */
|
||||
@ -579,9 +589,11 @@ B220MagTapeDrive.prototype.loadTape = function loadTape() {
|
||||
mt.tapeState = mt.tapeLocal; // setTapeReady() requires it not be unloaded
|
||||
mt.setLane(0, null);
|
||||
mt.$$("MTLaneNrLight").style.visibility = "visible";
|
||||
mt.setTapeReady(true);
|
||||
mt.reelIcon.style.visibility = "visible";
|
||||
mt.$$("MTUnloadedLight").classList.remove("annunciatorLit");
|
||||
|
||||
// Automatically turn on transport power and make drive ready
|
||||
mt.setTransportPower($$$("MTLoadTransportPowerOn").checked);
|
||||
}
|
||||
|
||||
function writeBlockStart(length) {
|
||||
@ -1160,10 +1172,7 @@ B220MagTapeDrive.prototype.WriteBtn_onclick = function WriteBtn_onclick(ev) {
|
||||
B220MagTapeDrive.prototype.TransportOnBtn_onclick = function TransportOnBtn_onclick(ev) {
|
||||
/* Handle the click event for the TRANSPORT POWER ON and STANDBY buttons */
|
||||
|
||||
this.powerOn = (ev.target.id == "TransportOnBtn") && (this.tapeState != this.tapeUnloaded);
|
||||
this.transportOnLamp.set(this.powerOn ? 1 : 0);
|
||||
this.transportStandbyLamp.set(this.powerOn ? 0 : 1);
|
||||
this.setTapeReady(this.powerOn);
|
||||
this.setTransportPower(ev.target.id == "TransportOnBtn");
|
||||
};
|
||||
|
||||
/**************************************/
|
||||
|
||||
@ -51,6 +51,9 @@
|
||||
|
||||
<input id=MTLoadWriteEnableCheck type=checkbox value="1" checked>
|
||||
<label for=MTLoadWriteEnableCheck>Write Enabled</label>
|
||||
|
||||
<input id=MTLoadTransportPowerOn type=checkbox value="1" checked>
|
||||
<label for=MTLoadTransportPowerOn>Set Transport Power ON</label>
|
||||
</div>
|
||||
|
||||
<div id=MTLoadNotes>
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 532 B After Width: | Height: | Size: 618 B |
Loading…
x
Reference in New Issue
Block a user