MCPcopy Create free account
hub / github.com/GamerHack/GamerHack.github.io / add_and_set_addr

Function add_and_set_addr

g2all/900/module/mem.js:32–41  ·  view source on GitHub ↗
(mem, offset, base_lo, base_hi)

Source from the content-addressed store, hash-verified

30}
31
32function add_and_set_addr(mem, offset, base_lo, base_hi) {
33 const values = lohi_from_one(offset);
34 const main = mem._main;
35
36 const low = base_lo + values[0];
37
38 // no need to use ">>> 0" to convert to unsigned here
39 main[off_vector] = low;
40 main[off_vector2] = base_hi + values[1] + (low > 0xffffffff);
41}
42
43export class Addr extends Int {
44 read8(offset) {

Callers 9

read8Method · 0.70
read16Method · 0.70
read32Method · 0.70
read64Method · 0.70
readpMethod · 0.70
write8Method · 0.70
write16Method · 0.70
write32Method · 0.70
write64Method · 0.70

Calls 1

lohi_from_oneFunction · 0.90

Tested by

no test coverage detected