Record Class VmHandlers.ExtendedInstruction
java.lang.Object
java.lang.Record
org.impulsegraph.vm.VmHandlers.ExtendedInstruction
- Enclosing class:
VmHandlers
public static record VmHandlers.ExtendedInstruction(byte opcode, byte flags, int dstReg, int arg1, int arg2, int arg3, int arg4, int arg5, long extPayload)
extends Record
16-byte (128-bit) Extended Instruction format (Section 3.2.1). Word 1:
[opcode: u8, flags: u8 (0x80), dst_reg: u16, arg1: u16, arg2: u16] Word 2:
[marker: u8 (0xFF), padding: u8 (0x00), arg3: u16, arg4: u16, arg5: u16]
-
Constructor Summary
ConstructorsConstructorDescriptionExtendedInstruction(byte opcode, byte flags, int dstReg, int arg1, int arg2, int arg3, int arg4, int arg5, long extPayload) Creates an instance of aExtendedInstructionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintarg1()Returns the value of thearg1record component.intarg2()Returns the value of thearg2record component.intarg3()Returns the value of thearg3record component.intarg4()Returns the value of thearg4record component.intarg5()Returns the value of thearg5record component.intdstReg()Returns the value of thedstRegrecord component.final booleanIndicates whether some other object is "equal to" this one.longReturns the value of theextPayloadrecord component.byteflags()Returns the value of theflagsrecord component.final inthashCode()Returns a hash code value for this object.byteopcode()Returns the value of theopcoderecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ExtendedInstruction
public ExtendedInstruction(byte opcode, byte flags, int dstReg, int arg1, int arg2, int arg3, int arg4, int arg5, long extPayload) Creates an instance of aExtendedInstructionrecord class.- Parameters:
opcode- the value for theopcoderecord componentflags- the value for theflagsrecord componentdstReg- the value for thedstRegrecord componentarg1- the value for thearg1record componentarg2- the value for thearg2record componentarg3- the value for thearg3record componentarg4- the value for thearg4record componentarg5- the value for thearg5record componentextPayload- the value for theextPayloadrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
opcode
public byte opcode()Returns the value of theopcoderecord component.- Returns:
- the value of the
opcoderecord component
-
flags
public byte flags()Returns the value of theflagsrecord component.- Returns:
- the value of the
flagsrecord component
-
dstReg
public int dstReg()Returns the value of thedstRegrecord component.- Returns:
- the value of the
dstRegrecord component
-
arg1
public int arg1()Returns the value of thearg1record component.- Returns:
- the value of the
arg1record component
-
arg2
public int arg2()Returns the value of thearg2record component.- Returns:
- the value of the
arg2record component
-
arg3
public int arg3()Returns the value of thearg3record component.- Returns:
- the value of the
arg3record component
-
arg4
public int arg4()Returns the value of thearg4record component.- Returns:
- the value of the
arg4record component
-
arg5
public int arg5()Returns the value of thearg5record component.- Returns:
- the value of the
arg5record component
-
extPayload
public long extPayload()Returns the value of theextPayloadrecord component.- Returns:
- the value of the
extPayloadrecord component
-