mirror of
https://github.com/pkimpel/retro-b5500.git
synced 2026-04-26 04:08:12 +00:00
Commit DCMCP transcription as of 2012-11-20; improvements to B5500Console.html and B5500ProcessorPanel.html so they will work properly on webkit browsers.
This commit is contained in:
@@ -19,12 +19,12 @@ var PAStateChange = function() {
|
||||
var aControl = document.getElementById("AControlBtn");
|
||||
var delay = Math.random();
|
||||
|
||||
if (paState) {
|
||||
if (paState || !pbState) { // PA will go to Normal State onlyl if PB is already in Normal State
|
||||
paState = 0;
|
||||
aNormal.className = "yellowButton";
|
||||
aControl.className = "yellowButton yellowLit";
|
||||
delay = Math.log(delay+1)*1000;
|
||||
} else {
|
||||
delay = Math.log(delay+1)*250;
|
||||
} else {
|
||||
paState = 1;
|
||||
aNormal.className = "yellowButton yellowLit";
|
||||
aControl.className = "yellowButton";
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
<script src="B5500ProcessorPanel.js"></script>
|
||||
|
||||
<script>
|
||||
var displayRefreshPeriod = 200; // milliseconds
|
||||
var displayRefreshPeriod = 75; // milliseconds
|
||||
var lastRefresh = new Date().getTime();
|
||||
var nextRefresh = 0;
|
||||
var panel;
|
||||
@@ -28,10 +28,10 @@ var updateDisplay = function updateDisplay() {
|
||||
var meter = document.getElementById("idleMeter");
|
||||
var that = updateDisplay.that;
|
||||
|
||||
panel.X.update(Math.random()*0x8000000000);
|
||||
panel.X.update((Math.random()/65536+Math.random())*0x8000000000);
|
||||
panel.A.update((Math.random()/65536+Math.random())*0x1000000000000);
|
||||
panel.B.update(Math.random()*0x1000000000000);
|
||||
panel.P.update(Math.random()*0x1000000000000);
|
||||
panel.B.update((Math.random()/65536+Math.random())*0x1000000000000);
|
||||
panel.P.update((Math.random()/65536+Math.random())*0x1000000000000);
|
||||
panel.J.update(Math.random()*0x10);
|
||||
panel.Q.update(Math.random()*0x200000);
|
||||
panel.R.update(Math.random()*0x200);
|
||||
@@ -67,8 +67,8 @@ var updateDisplay = function updateDisplay() {
|
||||
};
|
||||
|
||||
window.onload = function() {
|
||||
window.resizeTo(750, 600);
|
||||
window.moveTo(screen.availWidth-750, screen.availHeight-600);
|
||||
window.resizeTo(750, 540);
|
||||
window.moveTo(screen.availWidth-750, screen.availHeight-540);
|
||||
document.title = "B5500 Processor A";
|
||||
panel = new B5500ProcessorPanel(window);
|
||||
updateDisplay.that = this;
|
||||
|
||||
Reference in New Issue
Block a user