Updated the screen implementation according to the spec
This commit is contained in:
@@ -171,6 +171,7 @@ function UxnCore() {
|
||||
getdev: function(port) {return mem.dev[port]},
|
||||
getram: function(start, length) {return mem.ram.subarray(start, start+length)},
|
||||
setram: function(addr, bVal) {mem.ram[addr] = bVal},
|
||||
setramblk: function(addr, blk) {mem.ram.set(blk, addr)},
|
||||
setWriteHook: function(port, cb) {
|
||||
if(!cb) cb = function(){}
|
||||
devWriteHooks[port] = cb
|
||||
|
||||
Reference in New Issue
Block a user