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] Wrong order of operands in non-commutative arithmetic instructions (SUB, DIV, MOD) #256

Closed PietHelzel closed 6 days ago

PietHelzel commented 1 week ago

Current behavior and impact: The SUB, DIV and MOD instructions currently divide the a-value by the b-value. This leads to results that are not spec-compliant.

Steps to reproduce:

  1. Use one of those three instructions to perform an operation.

Expected behavior: The operation is performed like "b-value \<operation> a-value", in that order.

Acceptance Criteria: