summaryrefslogtreecommitdiff
path: root/includes/compiler/PCodeUtilities.h
diff options
context:
space:
mode:
authorAsh Wolf <ninji@wuffs.org>2022-12-29 12:32:55 +0000
committerAsh Wolf <ninji@wuffs.org>2022-12-29 12:32:55 +0000
commitfcfbafff31869ed808bff0639532db1828660e92 (patch)
tree7425b346b031c4cb47a06250b3f6f950374d44ae /includes/compiler/PCodeUtilities.h
parentbc1321735c15104ffad195e1509cab5f3a044260 (diff)
downloadMWCC-fcfbafff31869ed808bff0639532db1828660e92.tar.gz
MWCC-fcfbafff31869ed808bff0639532db1828660e92.zip
dump lots more code
Diffstat (limited to '')
-rw-r--r--includes/compiler/PCodeUtilities.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/includes/compiler/PCodeUtilities.h b/includes/compiler/PCodeUtilities.h
index 312dd55..6a55ff4 100644
--- a/includes/compiler/PCodeUtilities.h
+++ b/includes/compiler/PCodeUtilities.h
@@ -2,6 +2,7 @@
#define COMPILER_PCODEUTILITIES_H
#include "compiler/common.h"
+#include "compiler/PCodeInfo.h"
extern void pcsetrecordbit(PCode *pc);
extern void pcsetsideeffects(PCode *pc);
@@ -9,15 +10,15 @@ extern void pcsetlinkbit(PCode *pc);
extern void branch_label(PCodeLabel *label);
extern void branch_conditional(short a, short compareop, short c, PCodeLabel *label);
extern void branch_always(PCodeLabel *label);
-extern void branch_decrement_always(short opcode, PCodeLabel *label);
+extern void branch_decrement_always(Opcode opcode, PCodeLabel *label);
extern void branch_indirect(Object *obj);
extern int branch_count_volatiles(void);
extern PCodeArg *branch_record_volatiles(PCodeArg *arglist, UInt32 *masks);
extern void branch_subroutine(Object *obj, short add_nop, UInt32 *masks);
extern void branch_subroutine_ctr(UInt32 *masks);
-extern void add_immediate(short dest_reg, short base_reg, Object *obj, short offset);
-extern PCode *add_immediate_lo(short dest_reg, short base_reg, Object *obj, short offset, char add_to_block);
-extern PCode *op_absolute_ha(short dest_reg, short base_reg, Object *obj, short offset, char add_to_block);
-extern void load_store_register(short opcode, short dest_reg, short base_reg, Object *obj, SInt32 offset);
+extern void add_immediate(short dest_reg, short base_reg, Object *obj, SInt16 offset);
+extern PCode *add_immediate_lo(short dest_reg, short base_reg, Object *obj, SInt16 offset, char add_to_block);
+extern PCode *op_absolute_ha(short dest_reg, short base_reg, Object *obj, SInt16 offset, char add_to_block);
+extern void load_store_register(Opcode opcode, short dest_reg, short base_reg, Object *obj, SInt32 offset);
#endif