2022-09-05 23:48:56 -07:00
|
|
|
#ifndef _ASM_H
|
|
|
|
#define _ASM_H
|
|
|
|
|
2022-09-06 02:20:10 -07:00
|
|
|
#include "x86encode.h"
|
|
|
|
|
2022-09-05 23:48:56 -07:00
|
|
|
#include <stddef.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
2022-09-06 19:47:46 -07:00
|
|
|
typedef uint32_t ip;
|
2022-09-05 23:48:56 -07:00
|
|
|
extern ip here;
|
|
|
|
|
|
|
|
/// Jump to a known address.
|
|
|
|
void inst_jump(ip there);
|
|
|
|
|
|
|
|
/// Jump to an unresolved address.
|
|
|
|
ip inst_jump_unresolved(void);
|
|
|
|
void inst_jump_resolve(ip disp, ip there);
|
|
|
|
#endif
|