mirror of
https://github.com/copy/v86.git
synced 2025-12-31 04:23:15 +00:00
Add return value
This commit is contained in:
parent
ae183866e4
commit
b4796e9212
1 changed files with 3 additions and 0 deletions
|
|
@ -175,10 +175,13 @@ function Memory(buffer, memory_size)
|
|||
|
||||
this.mmap_register(memory_size, 0x100000000 - memory_size,
|
||||
function(addr) {
|
||||
// read outside of the memory size
|
||||
addr += memory_size;
|
||||
dbg_log("Read from unmapped memory space, addr=" + h(addr, 8), LOG_IO);
|
||||
return 0;
|
||||
},
|
||||
function(addr, value) {
|
||||
// write outside of the memory size
|
||||
addr += memory_size;
|
||||
dbg_log("Write to unmapped memory space, addr=" + h(addr, 8) + " value=" + h(value, 2), LOG_IO);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue