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] SEQ.I should ignore address modes #235

Closed PietHelzel closed 1 week ago

PietHelzel commented 1 week ago

Current behavior and impact: SEQ.I compares two instructions using "==". However, according to spec, this instruction only compares the opcode, modifier and fields, but not the address modes.

Steps to reproduce:

  1. Use the SEQ.I instruction to compare two instructions that are the same except their address modes.
  2. Observe that the jump does not occur.

Expected behavior: The SEQ.I instruction should still jump even if the address modes are different.

Acceptance Criteria:

Notes: