Skip to content

unknown opcodes print as decimal #6

Open

Description

@ktye

memory.copy seems not to be implemented in the binary parser.
however the error message is:

unknown opcode sequence: 0xFC 0x10

which should be 0xFC 0x0A.
It looks like it's printed decimal in table.c (web49_bytes_to_opcode):

unknown opcode sequence: 0xFC 0x%" PRIu8

same for the other sequences.

Activity

  1. ShawSumma commented on Jan 9, 2023

    @ShawSumma
    Member

    thank you for the bug report, i was just working on implementing the rest of 0xFC....

  2. ShawSumma commented on Jan 17, 2023

    @ShawSumma
    Member

    I am doing a medium-sized refactor and this gets handled in there too.
    I'll close the issue when web49 can handle all 0xFC opcodes.

  3. ktye commented on Jan 17, 2023

    @ktye
    Author

    you still have swapped the opcodes for (memory.copy memory.fill data.drop)
    https://github.com/FastVM/Web49/blob/main/src/tables.c#L1456
    it should be data.drop:0x09, memory.copy:0x0a, memory.fill:0x0b

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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