diff options
author | mrb0nk500 <b0nk@b0nk.xyz> | 2022-02-02 15:08:13 -0400 |
---|---|---|
committer | mrb0nk500 <b0nk@b0nk.xyz> | 2022-02-02 15:08:13 -0400 |
commit | fa2521bdf6dd8d4b67cb075c85442dbc2b924fd2 (patch) | |
tree | ab27893d2230d89e04391176e0fbe63a3430c563 /sux.h | |
parent | 0b73fea55ab4dbca48141f56ec5cdf193e299c9c (diff) |
sux.h: Remove unneeded, and inaccurate cycle increments.
Diffstat (limited to 'sux.h')
-rw-r--r-- | sux.h | 15 |
1 files changed, 0 insertions, 15 deletions
@@ -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; |