1
0
mirror of https://github.com/pkimpel/retro-220.git synced 2026-05-05 07:24:55 +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:
Paul Kimpel
2017-05-10 08:45:06 -07:00
parent df29455c91
commit 9fa3d967d2
8 changed files with 890 additions and 477 deletions

View File

@@ -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);
}
}
};