summaryrefslogtreecommitdiff
path: root/PCodeInfo.c
diff options
context:
space:
mode:
authorAsh Wolf <ninji@wuffs.org>2022-10-07 20:02:27 +0100
committerAsh Wolf <ninji@wuffs.org>2022-10-07 20:02:27 +0100
commit97f6a2438df1eaeb4128ce36f29346ea38a3db4a (patch)
tree78260f8f0f2b84fc70fadb1e50e7fc104390eee4 /PCodeInfo.c
downloadMWCC-97f6a2438df1eaeb4128ce36f29346ea38a3db4a.tar.gz
MWCC-97f6a2438df1eaeb4128ce36f29346ea38a3db4a.zip
first very unfinished commit lol
Diffstat (limited to '')
-rw-r--r--PCodeInfo.c55
1 files changed, 55 insertions, 0 deletions
diff --git a/PCodeInfo.c b/PCodeInfo.c
new file mode 100644
index 0000000..9d469bc
--- /dev/null
+++ b/PCodeInfo.c
@@ -0,0 +1,55 @@
+#include "PCodeInfo.h"
+
+void pcode_get_hi_lo(int a1, char a2, int *pA, int *pB) {
+
+}
+
+int pcode_check_imm_bits(int a1, int a2, int a3) {
+
+}
+
+int pcode_const_from_format(char *buf, int *pResult) {
+
+}
+
+PCode *vformatpcode(short opcode, va_list argList) {
+
+}
+
+int expectandformatoperand(PCodeArg *operand, unsigned char expectedKind, char a3, int bitCount, char *buf) {
+}
+
+int formatoperand(PCodeArg *operand, char *buf) {
+
+}
+
+void formatoperands(PCode *pcode, char *buf, int showBasicBlocks) {
+
+}
+
+PCode *makecopyinstruction(PCodeArg *a, PCodeArg *b) {
+
+}
+
+int is_location_independent(PCode *pcode) {
+
+}
+
+int can_reuse_stored_value(PCode *a, PCode *b) {
+
+}
+
+int nbytes_loaded_or_stored_by(PCode *pcode) {
+
+}
+
+void change_num_operands(PCode *pcode, int newNum) {
+
+}
+
+void change_opcode(PCode *pcode, short opcode) {
+ pcode->flags = (pcode->flags & ~(opcodeinfo[pcode->op].flags & ~fIsPtrOp)) | opcodeinfo[opcode].flags;
+ if ((pcode->flags & fPCodeFlag10) && (pcode->flags & (fPCodeFlag1 | fPCodeFlag8)))
+ pcode->flags &= ~fPCodeFlag10;
+ pcode->op = opcode;
+}