mirror of
https://github.com/pkimpel/retro-b5500.git
synced 2026-02-14 04:04:29 +00:00
1. Implement new system and disk subsystem configuration mechanism. 2. Implement initial Mark-XIII Cold Start card deck for use with new configuration interfaces. 3. Deprecate use of B5500ColdLoader.html script (replaced by new configuration mechanism and Cold Start deck), but correct and enhance IndexedDB database detection, creation, and deletion in it. 4. Implement "Application Cache" support to allow emulator to run off-line in a browser. 5. Implement web-font support and update all UIs to use DejaVu Sans and DejaVu Sans Mono from downloaded .woff or .ttf font files. 6. Rework some code in Processor OPDC, DESC, and indexDescriptor routines, attempting to resolve Flag Bit errors (issue #23). This appears to result in some improvement, but we still see them occasionally under load. 7. Line Printer: - Implement new line printer driver with more realistic UI and operator controls. - Implement Algol Glyphs option to render special Algol characters in Unicode. - Implement support for optional "greenbar" shading on the "paper". 8. SPO: - Redesign SPO driver to accept input from a text <input> element instead of capturing keystrokes directly from the window or "paper" <iframe>. This was done to allow input from tablet and mobile devices that will not pop up a keyboard unless an input-like element has the focus. - Implement Unicode Algol Glyphs support on output. - Intelligently resize "paper" area when SPO window is resized. - Accept "_" as a substitute for "~" as end-of-message on input. 9. Card Punch: - Implement Unicode Algol Glyphs support on output. - Implement stacker-full annunciators in UI. 10. Card Reader: - Implement Unicode Algol Glyphs support on input. - Accept "_" as a substitute for "~" on input. 11. Disk: - Adapt B5500DiskUnit driver to new configuration mechanism. - Implement support for Model-IB (slow) disk and non-DFX disk storage configurations; support up to 20 EUs. - Implement check for DKA readiness in cc.load() if not doing card-load-select. 12. Datacom: - Rework datacom driver keystroke handling for compatibility with Google Chrome. - Correct typo (line 437) in B5500DatacomUnit reported by Peter Grootswagers (issue #28). 13. Magnetic Tape: - Implement more granular tape reel animation in B5500MagTapeDrive. - Open the tape loader window on top of its device window. 14. Correct color of NOT READY lamps in peripheral device UIs; convert <progress> bars to <meter> elements. 15. More intelligently resize peripheral UI controls when their window is resized. 16. Implement lamp test during power-on in B5500Console. 17. Illuminate NOT READY light on Console at power-on if certain minimum configuration requirements are not met. 18. Set all HTML <meta> Content-Type character sets to UTF-8 (were ISO-8859-1); correct problem with FireFox requiring the character set to be specified within the first 1024 characters of an HTML file. 19. Clean up and refactor CSS style sheets 20. Split Javascript code out from B5500Console.html to new B5500Console.js. 21. Refactor common UI routines into webUI\B5500Util.js. 22. Move images and fonts to new webUI/resources directory; rearrange files in webUI/tool, tools, tests, source directories of repo. 23. Make significant wiki updates to document the new features in this release.
118 lines
5.9 KiB
JavaScript
118 lines
5.9 KiB
JavaScript
/***********************************************************************
|
|
* retro-b5500/emulator B5500SystemConfiguration.js
|
|
************************************************************************
|
|
* Copyright (c) 2012, 2014, Nigel Williams and Paul Kimpel.
|
|
* Licensed under the MIT License,
|
|
* see http://www.opensource.org/licenses/mit-license.php
|
|
************************************************************************
|
|
* B5500 System Configuration definition module.
|
|
*
|
|
* This class defines the system configuration properties for the B5500
|
|
* emulator. This is not used directly by the emulator, but serves as a
|
|
* central definition of the configuration properties and as a template
|
|
* from which actual configuration instances can be cloned.
|
|
************************************************************************
|
|
* 2012-06-30 P.Kimpel
|
|
* Original version, from thin air.
|
|
* 2014-08-27 P.Kimpel
|
|
* Revise and implement as a constructor with prototype to support the
|
|
* new dynamic configuration mechanism.
|
|
***********************************************************************/
|
|
"use strict";
|
|
|
|
/**************************************/
|
|
function B5500SystemConfiguration() {
|
|
/* Constructor for the global SystemConfiguration definition object */
|
|
// ...nothing to construct at present... everything's in the prototype.
|
|
}
|
|
|
|
/**************************************/
|
|
B5500SystemConfiguration.prototype.configLevel = 1; // configuration object version
|
|
B5500SystemConfiguration.prototype.sysDefaultConfigName = "Default";
|
|
B5500SystemConfiguration.prototype.sysDefaultStorageName = "B5500DiskUnit";
|
|
|
|
// Template for Datacom terminal unit (B487) definition object
|
|
B5500SystemConfiguration.prototype.sysDefaultTerminalUnit = {
|
|
enabled: true, // available in system
|
|
adapters: 1, // number of terminal interface adapters
|
|
buffers: 2, // number of 28-character buffers/adapter
|
|
pingPong: false // use ping-pong buffer management
|
|
};
|
|
|
|
// Template for the global system configuration definition object
|
|
B5500SystemConfiguration.prototype.systemConfig = {
|
|
configLevel: B5500SystemConfiguration.prototype.configLevel,
|
|
configName: B5500SystemConfiguration.prototype.sysDefaultConfigName,
|
|
|
|
PA: {enabled: true}, // Processor A available
|
|
PB: {enabled: false}, // Processor B available
|
|
|
|
PB1L: false, // PA is P1 (false) | PB is P1 (true)
|
|
|
|
IO1: {enabled: true}, // I/O Unit 1 available
|
|
IO2: {enabled: true}, // I/O Unit 2 available
|
|
IO3: {enabled: true}, // I/O Unit 3 available
|
|
IO4: {enabled: false}, // I/O Unit 4 available
|
|
|
|
memMod: [ {enabled: true}, // Memory module 0 available (4KW)
|
|
{enabled: true}, // Memory module 1 available (4KW)
|
|
{enabled: true}, // Memory module 2 available (4KW)
|
|
{enabled: true}, // Memory module 3 available (4KW)
|
|
{enabled: true}, // Memory module 4 available (4KW)
|
|
{enabled: true}, // Memory module 5 available (4KW)
|
|
{enabled: true}, // Memory module 6 available (4KW)
|
|
{enabled: true}], // Memory module 7 available (4KW)
|
|
|
|
units: {
|
|
SPO: {enabled: true, // SPO keyboard/printer
|
|
algolGlyphs: false},
|
|
|
|
DKA: {enabled: true, // Disk File Control A
|
|
DFX: true, FPM: false,
|
|
storageName: B5500SystemConfiguration.prototype.sysDefaultStorageName},
|
|
DKB: {enabled: false, // Disk File Control B
|
|
DFX: true, FPM: false,
|
|
storageName: B5500SystemConfiguration.prototype.sysDefaultStorageName},
|
|
|
|
CRA: {enabled: true}, // Card Reader A
|
|
CRB: {enabled: false}, // Card Reader B
|
|
CPA: {enabled: true, // Card Punch A
|
|
algolGlyphs: true},
|
|
|
|
LPA: {enabled: true, // Line Printer A
|
|
algolGlyphs: true},
|
|
LPB: {enabled: false, // Line Printer B
|
|
algolGlyphs: true},
|
|
|
|
PRA: {enabled: false}, // Paper Tape Reader A
|
|
PRB: {enabled: false}, // Paper Tape Reader B
|
|
PPA: {enabled: false}, // Paper Tape Punch A
|
|
PPB: {enabled: false}, // Paper Tape Punch A
|
|
|
|
DCA: {enabled: true, // Data Communications Control A
|
|
terminalUnits: {
|
|
TU1: B5500SystemConfiguration.prototype.sysDefaultTerminalUnit
|
|
}},
|
|
|
|
DRA: {enabled: false}, // Drum/Auxmem A
|
|
DRB: {enabled: false}, // Drum/Auxmem B
|
|
|
|
MTA: {enabled: true}, // Magnetic Tape Unit A
|
|
MTB: {enabled: false}, // Magnetic Tape Unit B
|
|
MTC: {enabled: false}, // Magnetic Tape Unit C
|
|
MTD: {enabled: false}, // Magnetic Tape Unit D
|
|
MTE: {enabled: false}, // Magnetic Tape Unit E
|
|
MTF: {enabled: false}, // Magnetic Tape Unit F
|
|
MTH: {enabled: false}, // Magnetic Tape Unit H
|
|
MTJ: {enabled: false}, // Magnetic Tape Unit J
|
|
MTK: {enabled: false}, // Magnetic Tape Unit K
|
|
MTL: {enabled: false}, // Magnetic Tape Unit L
|
|
MTM: {enabled: false}, // Magnetic Tape Unit M
|
|
MTN: {enabled: false}, // Magnetic Tape Unit N
|
|
MTP: {enabled: false}, // Magnetic Tape Unit P
|
|
MTR: {enabled: false}, // Magnetic Tape Unit R
|
|
MTS: {enabled: false}, // Magnetic Tape Unit S
|
|
MTT: {enabled: false} // Magnetic Tape Unit T
|
|
}
|
|
};
|