2022-09-05 23:48:56 -07:00
|
|
|
#ifndef _ASM_H
|
|
|
|
#define _ASM_H
|
|
|
|
|
2022-09-10 22:06:21 -07:00
|
|
|
#include "format.h"
|
2022-10-19 12:21:46 -07:00
|
|
|
#include "x86encode.h"
|
2022-09-05 23:48:56 -07:00
|
|
|
|
|
|
|
/// Jump to a known address.
|
2022-09-10 22:06:21 -07:00
|
|
|
void inst_jump(symbol sym);
|
2022-09-05 23:48:56 -07:00
|
|
|
|
2022-10-19 12:21:46 -07:00
|
|
|
/// Jump to a known address if the argument is zero.
|
|
|
|
void inst_jump_if_zero(symbol sym, reg reg);
|
|
|
|
|
|
|
|
/// Jump to a known address if the argument is not zero.
|
|
|
|
void inst_jump_if_not_zero(symbol sym, reg reg);
|
|
|
|
|
2022-09-05 23:48:56 -07:00
|
|
|
#endif
|