Merge branch 'main' of git.mineau.eu:histausse/androscalpel
This commit is contained in:
commit
e75e6b160e
1 changed files with 11 additions and 5 deletions
|
|
@ -102,24 +102,30 @@ pub enum Instruction {
|
||||||
/// Check if an object if an instance of a type.
|
/// Check if an object if an instance of a type.
|
||||||
/// (put 1 in the dest register if yes, else 0)
|
/// (put 1 in the dest register if yes, else 0)
|
||||||
InstanceOf {
|
InstanceOf {
|
||||||
/// 4 bit register
|
/// 4 bits register
|
||||||
dest: u8,
|
dest: u8,
|
||||||
/// 4 bit register
|
/// 4 bits register
|
||||||
obj: u8,
|
obj: u8,
|
||||||
lit: IdType,
|
lit: IdType,
|
||||||
},
|
},
|
||||||
/// Get the number of item in an array.
|
/// Get the number of item in an array.
|
||||||
/// (put the lenght in the dest register)
|
/// (put the lenght in the dest register)
|
||||||
ArrayLength {
|
ArrayLength {
|
||||||
/// 4 bit register
|
/// 4 bits register
|
||||||
dest: u8,
|
dest: u8,
|
||||||
/// 4 bit register
|
/// 4 bits register
|
||||||
arr: u8,
|
arr: u8,
|
||||||
},
|
},
|
||||||
/// Construct a new instance of the indicated type and store a reference to it.
|
/// Construct a new instance of the indicated type and store a reference to it.
|
||||||
NewInstance { reg: u8, lit: IdType },
|
NewInstance { reg: u8, lit: IdType },
|
||||||
/// Construct a new array of the indicated type and size in size_reg and store a reference to it.
|
/// Construct a new array of the indicated type and size in size_reg and store a reference to it.
|
||||||
NewArray { reg: u8, size_reg: u8, lit: IdType },
|
NewArray {
|
||||||
|
/// 4 bits register
|
||||||
|
reg: u8,
|
||||||
|
/// 4 bits register
|
||||||
|
size_reg: u8,
|
||||||
|
lit: IdType,
|
||||||
|
},
|
||||||
/// Construct a new array of the indicated type and size fill it with the values of the
|
/// Construct a new array of the indicated type and size fill it with the values of the
|
||||||
/// given registers.
|
/// given registers.
|
||||||
///
|
///
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue