Skip to content

Incorrect comparison between register index and register content #15

@ramonn76

Description

@ramonn76

In the ADD implementation, the overflow detection uses the following check:

if (a < Rb) V = 1; else V = 0;

Here, a represents the destination register index, while Rb is the content of a source register.
This comparison is invalid because it mixes register addressing (index) with register values (data).
As a result, the overflow flag (V) does not reflect the actual arithmetic overflow condition.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions