mirror of
https://github.com/pkimpel/retro-220.git
synced 2026-01-13 15:18:24 +00:00
Commit preliminary version 0.00e:
1. Initial implementation of partial-word operators CFA, CFR, IFL, DFL, DLB, BFA, BFR, STA, STR, STB. 2. Implemement ADL, IBB, DBB, RTF, BOF, BRP, BSA, BCH, BCL, BCE, BCU, BCS, SOR, SOH, IOM, LDR, LDB, LBC, LSA, STP, CLA, CLR, CLB, CLL, all shifts. 3. Implement variable-length BCD adder. 4. Additional arithmetics methods for Register class. 5. Correct re-focus of ConsoleKeyboard window. 6. Allow ConsolePrinter CR/LF buttons to operate while in remote state.
This commit is contained in:
parent
df29455c91
commit
9fa3d967d2
File diff suppressed because it is too large
Load Diff
@ -50,16 +50,22 @@ B220ConsoleKeyboard.prototype.clear = function clear() {
|
||||
B220ConsoleKeyboard.prototype.keyboardEnable = function keyboardEnable(enable) {
|
||||
/* Enables or disables the keyboard, and if necessary, opens the window for it */
|
||||
|
||||
if (!enable && this.enabled) {
|
||||
this.enabled = false;
|
||||
this.enabledLamp.set(0);
|
||||
} else if (enable && !this.enabled) {
|
||||
this.enabled = true;
|
||||
if (!this.window) {
|
||||
this.keyboardOpen(); // lamp will be lit in OnLoad()
|
||||
} else {
|
||||
this.enabledLamp.set(1);
|
||||
if (enable) {
|
||||
if (this.enabled) {
|
||||
this.window.focus();
|
||||
} else {
|
||||
this.enabled = true;
|
||||
if (!this.window) {
|
||||
this.keyboardOpen(); // lamp will be lit in OnLoad()
|
||||
} else {
|
||||
this.enabledLamp.set(1);
|
||||
this.window.focus();
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (this.enabled) {
|
||||
this.enabled = false;
|
||||
this.enabledLamp.set(0);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
@ -223,8 +223,10 @@ B220ConsolePrinter.prototype.button_Click = function button_Click(ev) {
|
||||
|
||||
switch (ev.target.id) {
|
||||
case "LineFeedBtn":
|
||||
this.emptyLine();
|
||||
break;
|
||||
case "CarriageReturnBtn":
|
||||
if (!this.ready) {
|
||||
if (this.printerCol > 0) {
|
||||
this.emptyLine();
|
||||
}
|
||||
break;
|
||||
|
||||
@ -488,25 +488,13 @@ B220ControlConsole.prototype.switch_Click = function switch_Click(ev) {
|
||||
p.RPT.flip();
|
||||
break;
|
||||
case "LowLamp":
|
||||
p.compareLowLamp.flip();
|
||||
p.compareEqualLamp.set(0);
|
||||
p.compareHighLamp.set(0);
|
||||
p.UET.set(p.compareLowLamp.value);
|
||||
p.HIT.set(0);
|
||||
p.toggleCompare(-1);
|
||||
break;
|
||||
case "EqualLamp":
|
||||
p.compareLowLamp.set(0);
|
||||
p.compareEqualLamp.flip();
|
||||
p.compareHighLamp.set(0);
|
||||
p.UET.set(0);
|
||||
p.HIT.set(p.compareEqualLamp.value);
|
||||
p.toggleCompare(0);
|
||||
break;
|
||||
case "HighLamp":
|
||||
p.compareLowLamp.set(0);
|
||||
p.compareEqualLamp.set(0);
|
||||
p.compareHighLamp.flip();
|
||||
p.UET.set(p.compareHighLamp.value);
|
||||
p.HIT.set(p.compareHighLamp.value);
|
||||
p.toggleCompare(+1);
|
||||
break;
|
||||
} // switch ev.target.id
|
||||
}
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
CACHE MANIFEST
|
||||
# retro-220 emulator 0.00d, 2017-04-29 12:35
|
||||
# retro-220 emulator 0.00e, 2017-05-09 20:15
|
||||
CACHE:
|
||||
../emulator/B220Processor.js
|
||||
B220.css
|
||||
|
||||
@ -55,7 +55,7 @@
|
||||
position: absolute;
|
||||
top: 68px;
|
||||
right: 200px;
|
||||
width: 80px;
|
||||
width: 100px;
|
||||
height: 20px}
|
||||
|
||||
#SysConfigHeading {
|
||||
|
||||
@ -41,7 +41,7 @@
|
||||
<div id=MessageArea></div>
|
||||
<button id=CancelBtn class="redButton">CANCEL</button>
|
||||
<button id=SaveBtn class="greenButton">SAVE</button>
|
||||
<button id=DefaultsBtn class="redButton" title="Set configurartion to original defaults">DEFAULTS</button>
|
||||
<button id=DefaultsBtn class="redButton" title="Set configurartion to original defaults">SET DEFAULTS</button>
|
||||
|
||||
<div class=heading>System Properties:</div>
|
||||
|
||||
|
||||
@ -334,7 +334,7 @@ B220SystemConfig.prototype.loadConfigDialog = function loadConfigDialog() {
|
||||
this.$$(prefix + "NotWrite").checked = unit.notWriteSwitch;
|
||||
} // for x
|
||||
|
||||
this.$$("MessageArea").textContent = "205 System Configuration loaded.";
|
||||
this.$$("MessageArea").textContent = "220 System Configuration loaded.";
|
||||
this.window.focus();
|
||||
};
|
||||
|
||||
@ -447,7 +447,7 @@ B220SystemConfig.prototype.saveConfigDialog = function saveConfigDialog() {
|
||||
} // for x
|
||||
|
||||
this.flushHandler(); // store the configuration
|
||||
this.$$("MessageArea").textContent = "205 System Configuration updated.";
|
||||
this.$$("MessageArea").textContent = "220 System Configuration updated.";
|
||||
this.window.close();
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user