From cc489748f65c8df6763e0ced41444bb52e59e855 Mon Sep 17 00:00:00 2001 From: randomdude999 Date: Mon, 22 Jan 2024 23:15:32 +0200 Subject: [PATCH] delete numopcodes --- src/asar/arch-65816.cpp | 3 --- src/asar/assembleblock.cpp | 8 -------- src/asar/assembleblock.h | 2 -- src/asar/interface-lib.cpp | 1 - 4 files changed, 14 deletions(-) diff --git a/src/asar/arch-65816.cpp b/src/asar/arch-65816.cpp index 37bda15c..4fbbea8b 100644 --- a/src/asar/arch-65816.cpp +++ b/src/asar/arch-65816.cpp @@ -4,7 +4,6 @@ #include "asar_math.h" #define write1 write1_pick -extern int recent_opcode_num; void asinit_65816() { @@ -238,7 +237,6 @@ void thenext8(insn_context& arg) { int64_t rep_count = getnum(parsed_str); if(foundlabel) asar_throw_error(0, error_type_block, error_id_no_labels_here); for (int64_t i=0;i 1 && (is("db") || is("dw") || is("dl") || is("dd"))) { diff --git a/src/asar/assembleblock.h b/src/asar/assembleblock.h index dc292d55..7708eaf4 100644 --- a/src/asar/assembleblock.h +++ b/src/asar/assembleblock.h @@ -139,8 +139,6 @@ extern int realstartpos; extern int bytes; -extern int numopcodes; - extern int numif; extern int numtrue; diff --git a/src/asar/interface-lib.cpp b/src/asar/interface-lib.cpp index c22f5f69..4b7881b9 100644 --- a/src/asar/interface-lib.cpp +++ b/src/asar/interface-lib.cpp @@ -584,7 +584,6 @@ EXPORT const struct labeldata * asar_getalllabels(int * count) */ EXPORT int asar_getlabelval(const char * name) { - if (!stricmp(name, ":$:opcodes:$:")) return numopcodes;//aaah, you found me int i; try { i=(int)labelval(&name).pos;