diff options
Diffstat (limited to 'xex.h')
-rw-r--r-- | xex.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -104,6 +104,14 @@ int xex_get_object(xex_segment *seg, unsigned char *data); Returns true if segment is OK. */ int xex_check_seg(xex_segment *seg); +/* Get run address from a segment, if there is one. This can handle the case + where the address is embedded in a larger segment (that doesn't just consist + of 2 bytes loaded at RUNAD). Returns -1 if there is no run address. */ +int xex_get_run_addr(xex_segment *seg); + +/* Same as above, for init address. */ +int xex_get_init_addr(xex_segment *seg); + /* Get human-readable error message. If xex_errno is XSYSCALL, the system's strerror() is called. */ char *xex_strerror(int err); |