Skip to content

"fix" deadfish overflow using ΙΧΘΥΣ to self-patch x >= 256 #7

@hornc

Description

@hornc

Using only ΙΧΘΥΣ code, self-patch the interpreter so that the deadfish_overflow() reset to 0 is triggered when x >= 256 not just x == 256

See Deadfish for an explanation of 'deadfish arithmetic' and tests. This "fix" is to break the proper deadfish way.

Suggested Approach
Should be achievable by simply re-defining the builtin θ (squaring operator) to multiply x by x using repeated applications of ι (increment) and loops. Less 'simple' given that ΙΧΘΥΣ doesn't directly implement loops ;)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions