pcjs/modules/shared/lib
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2016-10-04 14:02:39 -07:00
..
component.js Moved PDP-11 console I/O to SerialPort component 2016-10-04 14:02:39 -07:00
debugger.js Moved PDP-11 console I/O to SerialPort component 2016-10-04 14:02:39 -07:00
defines.js First stab at factoring some common Debugger functionality into a shared component 2016-09-14 15:36:38 -07:00
diskapi.js More PCjs/PCx86 disambiguation 2016-05-17 00:04:51 -07:00
dumpapi.js More PCjs/PCx86 disambiguation 2016-05-17 00:04:51 -07:00
embed.js Minor annotation and name changes; the PDP11 emulator "branded" as PDP11js now, since PDP11 is too generic 2016-09-06 10:06:08 -07:00
externs.js More PCjs/PCx86 disambiguation 2016-05-17 00:04:51 -07:00
keys.js Making some headway on the PDP-11 debugger (finally) 2016-09-16 14:53:05 -07:00
netlib.js Fixed the encoding of URIs containing escape sequences (eg, "%20") 2016-09-12 16:38:55 -07:00
nodebug.js More PCjs/PCx86 disambiguation 2016-05-17 00:04:51 -07:00
private.js More PCjs/PCx86 disambiguation 2016-05-17 00:04:51 -07:00
proclib.js More PCjs/PCx86 disambiguation 2016-05-17 00:04:51 -07:00
README.md Last of the link fixes (I hope) 2015-07-19 09:07:50 -07:00
reportapi.js More PCjs/PCx86 disambiguation 2016-05-17 00:04:51 -07:00
save.js More PCjs/PCx86 disambiguation 2016-05-17 00:04:51 -07:00
sockets.js More PCjs/PCx86 disambiguation 2016-05-17 00:04:51 -07:00
state.js Successfully running PCx86 and PC8080 machines on the same page now 2016-08-18 10:29:24 -07:00
strlib.js Assorted PDP-11 debugger changes 2016-09-19 16:30:08 -07:00
userapi.js More PCjs/PCx86 disambiguation 2016-05-17 00:04:51 -07:00
usrlib.js More PCjs/PCx86 disambiguation 2016-05-17 00:04:51 -07:00
weblib.js A (PC8080) VT100 can now connect to a (PCx86) IBM PC AT; only problem seems to be flow control now. 2016-08-18 16:46:34 -07:00

Shared Sources

This folder contains a mix of shared code, with some files used only by Node (server) modules, some used only by Browser (client) modules, and others used by both.

At the moment, only a few files are completely agnostic; eg: strlib.js and usrlib.js. One give-away is that neither contain references to any globals (although references to each other would be fine).

netlib.js is appropriate only for Node modules, because it contains code that relies on Node's global Buffer object, as indicated by:

/* global Buffer: false */

weblib.js is appropriate only for client modules, because it contains code that relies on the browser's global window object, as indicated by:

/* global window: true */

We declare window modifiable (true) so that defines.js can set global.window to false when running within Node, allowing any other code to test the existence of window with a simple:

if (window) {...}

instead of:

if (typeof window !== "undefined") {...}