struct Cradare2::Platform::PS2::VUInstruction

Overview

Decoded 64-bit Dual-Issue PlayStation 2 VU1 Microinstruction (0x11008000 + pc * 8).

Included Modules

Defined in:

cradare2/platform/ps2/vu_profiler.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pc : UInt32, address : UInt64, raw : UInt64, upper_word : UInt32, lower_word : UInt32, upper_op : String = "NOP", lower_op : String = "NOP", upper_mnemonic : String = "NOP", lower_mnemonic : String = "NOP", dest_mask : UInt8 = 0_u8, lower_dest_mask : UInt8 = 0_u8, upper_fd : UInt8 = 0_u8, upper_fs : UInt8 = 0_u8, upper_ft : UInt8 = 0_u8, lower_ft : UInt8 = 0_u8, lower_fs : UInt8 = 0_u8, lower_id : UInt8 = 0_u8, lower_is : UInt8 = 0_u8, lower_it : UInt8 = 0_u8, lower_imm : Int32 = 0, writes_acc : Bool = false, reads_acc : Bool = false, reads_q : Bool = false, reads_p : Bool = false, reads_i : Bool = false, fdiv_latency : Int32 = 0, i_bit : Bool = false, e_bit : Bool = false, m_bit : Bool = false, d_bit : Bool = false, t_bit : Bool = false) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]
def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

[View source]

Instance Method Detail

def address : UInt64 #

[View source]
def address=(address : UInt64) #

[View source]
def branch? : Bool #

[View source]
def d_bit : Bool #

[View source]
def d_bit=(d_bit : Bool) #

[View source]
def dest_mask : UInt8 #

[View source]
def dest_mask=(dest_mask : UInt8) #

[View source]
def disasm : String #

[View source]
def dual_issued? : Bool #

Returns true if both Upper (FMAC) and Lower execution units execute active operations simultaneously.


[View source]
def e_bit : Bool #

[View source]
def e_bit=(e_bit : Bool) #

[View source]
def fdiv_latency : Int32 #

[View source]
def fdiv_latency=(fdiv_latency : Int32) #

[View source]
def i_bit : Bool #

[View source]
def i_bit=(i_bit : Bool) #

[View source]
def immediate_float : Float32 | Nil #

Returns the 32-bit IEEE 754 float immediate when the Upper I bit (LOI) is set.


[View source]
def lower_dest_mask : UInt8 #

[View source]
def lower_dest_mask=(lower_dest_mask : UInt8) #

[View source]
def lower_fs : UInt8 #

[View source]
def lower_fs=(lower_fs : UInt8) #

[View source]
def lower_ft : UInt8 #

[View source]
def lower_ft=(lower_ft : UInt8) #

[View source]
def lower_id : UInt8 #

[View source]
def lower_id=(lower_id : UInt8) #

[View source]
def lower_imm : Int32 #

[View source]
def lower_imm=(lower_imm : Int32) #

[View source]
def lower_is : UInt8 #

[View source]
def lower_is=(lower_is : UInt8) #

[View source]
def lower_it : UInt8 #

[View source]
def lower_it=(lower_it : UInt8) #

[View source]
def lower_loads_vf? : Bool #

Returns true if Lower is a memory load into a VF register (LQ, LQI, LQD).


[View source]
def lower_mnemonic : String #

[View source]
def lower_mnemonic=(lower_mnemonic : String) #

[View source]
def lower_nop? : Bool #

[View source]
def lower_op : String #

[View source]
def lower_op=(lower_op : String) #

[View source]
def lower_reads_vf_fs? : Bool #

Returns true if Lower reads vf[lower_fs] (SQ, SQI, SQD, MOVE, MR32, MTIR, DIV, RSQRT).


[View source]
def lower_reads_vf_ft? : Bool #

Returns true if Lower reads vf[lower_ft] (DIV, SQRT, RSQRT).


[View source]
def lower_vi_dest : UInt8 #

Returns the destination VI register (1..15) written by Lower, or 0_u8 if none.


[View source]
def lower_word : UInt32 #

[View source]
def lower_word=(lower_word : UInt32) #

[View source]
def lower_writes_vf? : Bool #

Returns true if Lower writes a VF register (LQ, LQI, LQD, MOVE, MR32, MFIR).


[View source]
def m_bit : Bool #

[View source]
def m_bit=(m_bit : Bool) #

[View source]
def pc : UInt32 #

[View source]
def pc=(pc : UInt32) #

[View source]
def raw : UInt64 #

[View source]
def raw=(raw : UInt64) #

[View source]
def reads_acc : Bool #

[View source]
def reads_acc=(reads_acc : Bool) #

[View source]
def reads_i : Bool #

[View source]
def reads_i=(reads_i : Bool) #

[View source]
def reads_p : Bool #

[View source]
def reads_p=(reads_p : Bool) #

[View source]
def reads_q : Bool #

[View source]
def reads_q=(reads_q : Bool) #

[View source]
def t_bit : Bool #

[View source]
def t_bit=(t_bit : Bool) #

[View source]
def upper_fd : UInt8 #

[View source]
def upper_fd=(upper_fd : UInt8) #

[View source]
def upper_fs : UInt8 #

[View source]
def upper_fs=(upper_fs : UInt8) #

[View source]
def upper_ft : UInt8 #

[View source]
def upper_ft=(upper_ft : UInt8) #

[View source]
def upper_mnemonic : String #

[View source]
def upper_mnemonic=(upper_mnemonic : String) #

[View source]
def upper_nop? : Bool #

[View source]
def upper_op : String #

[View source]
def upper_op=(upper_op : String) #

[View source]
def upper_reads_fs? : Bool #

Returns true if Upper reads vf[upper_fs].


[View source]
def upper_reads_ft? : Bool #

Returns true if Upper reads vf[upper_ft].


[View source]
def upper_word : UInt32 #

[View source]
def upper_word=(upper_word : UInt32) #

[View source]
def upper_writes_vf? : Bool #

Returns true if Upper writes to a general-purpose VF register (vf01..vf31).


[View source]
def waitp? : Bool #

[View source]
def waitq? : Bool #

[View source]
def writes_acc : Bool #

[View source]
def writes_acc=(writes_acc : Bool) #

[View source]
def xgkick? : Bool #

[View source]