Add memcpy

This commit is contained in:
Fabian 2018-05-29 18:10:17 -05:00
parent 576e6b68f3
commit d374afb72e

View file

@ -155,6 +155,10 @@ function V86Starter(options)
mem8.set(mem8.subarray(source, source + length), dest);
return dest;
},
"_memcpy": function(dest, source, length) {
mem8.set(mem8.subarray(source, source + length), dest);
return dest;
},
"_call_interrupt_vector": function(interrupt_nr, is_software_int, has_error_code, error_code) {
cpu.call_interrupt_vector(interrupt_nr, is_software_int, !!has_error_code, error_code);