mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-03-15 07:26:05 +09:00
13 lines
325 B
JavaScript
13 lines
325 B
JavaScript
if (exec_args[1] === undefined) {
|
|
println("Usage: jmp pointer_in_hexadecimal")
|
|
println(" This will execute the binary image stored on the Core Memory at the given pointer.")
|
|
return 1
|
|
}
|
|
|
|
|
|
const ptr = parseInt(exec_args[1], 16)
|
|
const magic = sys.peek(ptr)
|
|
|
|
if (magic != 0xA5) return 1
|
|
|
|
eval(sys.toObjectCode(ptr)) |