Skip to content

Update to the newer spec #7

Open
@lifthrasiir

Description

@lifthrasiir

Notch will release the newer spec soon (the draft is available here), so the stdlib has to be updated to match with that spec.

Major changes for stdlib:

  • PUSH and POP has been merged (for now), bulk memory operation abusing SP won't work as is.
  • Also the evaluation order of operands has been swapped. Combined with the merger of PUSH and POP this will break almost every code that abuses SP.
  • We now have signed operations. Maybe useful for some cases (given that -1 is available for operands).
  • SP-relative addressing is available, and it does not cost an additional cycle (in the current spec at least). The affects of this change are to be determined of course.
  • Literal as the first operand to get unbranched comparison is not gone, but now slightly inefficient for some cases (no short literal allowed).
  • Trivial assembler changes. (Don't think s/\<O\>/EX/g will work, though)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions