Skip to content

Latest commit

 

History

History
110 lines (75 loc) · 2.62 KB

addressof_jit.md

File metadata and controls

110 lines (75 loc) · 2.62 KB

amx_assembly addressof_jit

AMX Assembly Library: addressof JIT code.

addressof works by reading data directly out of the stack to get a return address, then reading information from that location in memory to get the next CALL OpCode. This fails with the JIT because the return address is in the JITed code, not in the original p-code. Instead this library uses codescan.inc to convert runtime addressof calls to startup-time resolutions (i.e. constants). Despite being called "addressof-jit", this is useful in normal execution modes as well. See addressof.md for more details.

Functions

AddressofResolve:

Syntax

AddressofResolve()

Depends on

Estimated stack usage

761 cells

AddressofResolveFoundEnd:

Syntax

AddressofResolveFoundEnd(scanner[])

Parameters

Name Info
scanner [172]

Depends on

Estimated stack usage

27 cells

AddressofResolveFoundStart:

Syntax

AddressofResolveFoundStart(scanner[])

Parameters

Name Info
scanner [172]

Depends on

Estimated stack usage

44 cells