Skip to content

clarification on I/O ops #1

Description

@6293

hi @dr-orlovsky, I have some questions on I/O operations

https://github.com/pandoracore/alure/blob/3a98a1f85699409333040f0c93775e96e8d3eb00/src/isa.rs#L12

I could not find docs on AluReOp and I am assuming like this: Read and Store is for input, and Check and Load is for output. So read on assembly would be split into 2 operations, which are Read and Store. thus

read a16[2], $cycle_limit

would be converted to

Read(<some u16 value representing internal ID for $cycle_limit>)
StoreA(RegA::A16, Reg16::Reg2, u8)

In this scenario, however, I am not sure what is 3rd argument u8 for. Could you tell me brief explanations on these ops?

https://github.com/pandoracore/alure/blob/3a98a1f85699409333040f0c93775e96e8d3eb00/src/isa.rs#L20

Unlike RegA, RegR and RegF, RegS is internally u4 which stands for register index. So specifying index in 2nd argument Reg16 would not make sense.

Activity

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