peripherals/console.js
function Console (lc2, position, debug) {
  this.lc2 = lc2
  this.position = position
  this.debug = debug || false
  this.name = 'Console'
  this.lastReadKey = 0
  this.inputBuffer = 0
  this.outputKey = 0
  this.displayReady = 1
}
function Console (lc2, position, debug) {
  this.lc2 = lc2
  this.position = position
  this.debug = debug || false
  this.name = 'Console'
  this.lastReadKey = 0
  this.inputBuffer = 0
  this.outputKey = 0
  this.displayReady = 1
}
function Console ( lc2 , position , debug ) { this . lc2 = lc2 this . position = position this . debug = debug || false this . name = 'Console' this . lastReadKey = 0 this . inputBuffer = 0 this . outputKey = 0 this . displayReady = 1 }
Creates a new Console. Of course it needs a reference to a `lc2` CPU, the `position` in memory that will map to the Console registers, and wether or not debug mode might be activated.
Creates a new Console . Of course it needs a reference to a lc2 CPU the position in memory that will map to the Console registers and wether or not debug mode might be activated .