The first PDPjs script is operational (see /devices/pdp11/machine/1170/panel/debugger/xxdp)

This commit is contained in:
Jeff Parsons 2017-02-05 13:49:30 -08:00 committed by Jeff Parsons
commit 033f0bf212
7 changed files with 1602 additions and 1373 deletions

View file

@ -606,8 +606,24 @@ function findMachineComponent(idMachine, sType)
return Component.getComponentByType(sType, idMachine + ".machine");
}
/**
* processMachineScript(idMachine, sComponent, sScript)
*
* @param {string} idMachine
* @param {string} sComponent
* @param {string} sScript
* @return {boolean}
*/
function processMachineScript(idMachine, sComponent, sScript)
{
return Component.processScript(idMachine, sComponent, sScript);
}
/**
* Prevent the Closure Compiler from renaming functions we want to export, by adding them as global properties.
*
* TODO: Consider making all these functions properties on a single global object (eg, 'PCjs'), to minimize global
* pollution and risk of name collision.
*/
if (APPNAME == "C1Pjs") {
window['embedC1P'] = embedC1P;
@ -624,6 +640,7 @@ if (APPNAME == "PDPjs") {
}
window['findMachineComponent'] = findMachineComponent;
window['processMachineScript'] = processMachineScript;
window['enableEvents'] = Web.enablePageEvents;
window['sendEvent'] = Web.sendPageEvent;