Files
the-button/js/07_weird_assembly_machine.js
2025-09-12 11:20:36 +02:00

16 lines
303 B
JavaScript

let f;
async function prepare() {
const get = fetch('07_weird_assembly_machine.wasm');
const obj = await WebAssembly.instantiateStreaming(get);
f = obj.instance.exports.f;
}
function onClick() {
if(n >= 10n**18n) {
return;
}
n++;
x = BigInt.asUintN(64, f(x, n));
}