19 lines
306 B
C
19 lines
306 B
C
#ifndef _ASM_H
|
|
#define _ASM_H
|
|
|
|
#include "x86encode.h"
|
|
|
|
#include <stddef.h>
|
|
#include <stdint.h>
|
|
|
|
typedef uint32_t ip;
|
|
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
|