Class: AArch64::Instructions::SYS
- Inherits:
-
Object
- Object
- AArch64::Instructions::SYS
- Defined in:
- lib/aarch64/instructions/sys.rb
Overview
SYS – A64 System instruction SYS #<op1>, <Cn>, <Cm>, #<op2><Xt>
Instance Method Summary collapse
- #encode ⇒ Object
-
#initialize(op1, cn, cm, op2, xt) ⇒ SYS
constructor
A new instance of SYS.
Constructor Details
#initialize(op1, cn, cm, op2, xt) ⇒ SYS
Returns a new instance of SYS.
7 8 9 10 11 12 13 |
# File 'lib/aarch64/instructions/sys.rb', line 7 def initialize op1, cn, cm, op2, xt @op1 = op1 @cn = cn @cm = cm @op2 = op2 @xt = xt end |
Instance Method Details
#encode ⇒ Object
15 16 17 |
# File 'lib/aarch64/instructions/sys.rb', line 15 def encode SYS(@op1, @cn, @cm, @op2, @xt.to_i) end |