You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The idea is that AluRE when runs a program uses data from "dynamic data segment" for input purposes. These commands work with this segment.
Dynamic data specifies which type of data can be taken from user (their format etc).
All the instructions in AluReOp should be related to the input only. Output is made just by printing out values of registers after code execution basing on information in the package file. And I can't recall why I designed these operations like that, so feel free to restructure them the way you want.
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
andStore
is for input, andCheck
andLoad
is for output. Soread
on assembly would be split into 2 operations, which areRead
andStore
. thuswould be converted to
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
andRegF
,RegS
is internallyu4
which stands for register index. So specifying index in 2nd argumentReg16
would not make sense.The text was updated successfully, but these errors were encountered: