Added initial logic for decoding PDP-10 input-output instructions

This commit is contained in:
Jeff 2017-03-04 16:47:56 -08:00 committed by Jeff Parsons
commit 1ac769431f
7 changed files with 431 additions and 287 deletions

View file

@ -424,7 +424,9 @@ class MemoryPDP10 {
*/
readWordMemory(off, addr)
{
return this.aw[off];
var w = this.aw[off];
Component.assert(w >= 0 && w < PDP10.WORD_LIMIT);
return w;
}
/**
@ -437,6 +439,7 @@ class MemoryPDP10 {
*/
writeWordMemory(w, off, addr)
{
Component.assert(w >= 0 && w < PDP10.WORD_LIMIT);
if (this.aw[off] != w) {
this.aw[off] = w;
this.fDirty = true;