Added initial logic for decoding PDP-10 input-output instructions
This commit is contained in:
parent
e04bec1af4
commit
1ac769431f
7 changed files with 431 additions and 287 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue