corewar-teamprojekt / corewar

Corewar is a game about competitively optimizing assembly code. See our issueboard for current issues.
https://corewar.shonk.software
Apache License 2.0
11 stars 0 forks source link

[Bug] Arithmetic instructions cause two pre-decrements/post-increments #263

Open PietHelzel opened 6 days ago

PietHelzel commented 6 days ago

Current behavior and impact: When running an arithmetic instruction with an addressing mode of post-increment or pre-decrement, the affected instructions are incremented/decremented twice.

Steps to reproduce:

  1. Execute an arithmetic instruction with a field containing a pre-decrement or post-increment address mode.
  2. Observe the changes in the instructions being addressed.

Expected behavior: The increments/decrements are only done once.

Acceptance Criteria: