summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sux.h15
1 files changed, 0 insertions, 15 deletions
diff --git a/sux.h b/sux.h
index d80afc1..aa579fd 100644
--- a/sux.h
+++ b/sux.h
@@ -440,9 +440,6 @@ static /*inline*/ uint64_t offset_addr(struct sux *cpu, uint64_t offset, uint8_t
case 1: of = cpu->sp; break;
case 2: of = cpu->pc; break;
}
- #if getclk
- cpu->clk += inc_clk;
- #endif
switch (size) {
case 0: return of + (int8_t )offset;
case 1: return of + (int16_t)offset;
@@ -474,9 +471,6 @@ static /*inline*/ uint64_t read_addr(struct sux *cpu, uint8_t prefix, uint8_t in
}
static /*inline*/ uint64_t idx_addr(struct sux *cpu, uint8_t prefix, uint8_t inc_clk, uint8_t type, uint8_t inc_pc, uint64_t idx_reg) {
- #if getclk
- cpu->clk += inc_clk;
- #endif
return read_addr(cpu, prefix, inc_clk, type, inc_pc) + idx_reg;
}
@@ -485,9 +479,6 @@ static /*inline*/ uint64_t ind_addr(struct sux *cpu, uint8_t prefix, uint8_t inc
}
static /*inline*/ uint64_t ind_idx_addr(struct sux *cpu, uint8_t prefix, uint8_t inc_clk, uint8_t type, uint8_t inc_pc, uint64_t idx_reg, uint8_t pre_idx) {
- #if getclk
- cpu->clk += inc_clk;
- #endif
if (pre_idx) {
return read_value(cpu, 0, read_addr(cpu, prefix, inc_clk, type, inc_pc)+idx_reg, 7, inc_clk, 0);
} else {
@@ -503,9 +494,6 @@ static /*inline*/ uint64_t rel_addr(struct sux *cpu, uint8_t prefix, uint8_t inc
if (inc_pc) {
cpu->pc += (size + 1);
}
- #if getclk
- cpu->clk += inc_clk;
- #endif
switch (rs) {
default: return cpu->pc + (int8_t )offset;
case 1 : return cpu->pc + (int16_t)offset;
@@ -660,9 +648,6 @@ static /*inline*/ uint64_t get_ortho_addr(struct sux *cpu, uint8_t opcode, uint8
}
}
value[i] += (!is_ind(op[i].id)) ? tmp_val : 0;
- #if getclk
- cpu->clk += inc_clk;
- #endif
}
if (is_ind(op[i].id)) {
uint8_t pre_idx = 0;