class GB::DmgOps::Operation
- GB::DmgOps::Operation
- Reference
- Object
Included Modules
- JSON::Serializable
Defined in:
crab/gb/update_opcodes.crConstructors
Instance Method Summary
-
#assign_extra_integers : Array(String)
set u8, u16, and i8 if necessary
-
#branch(cond : String, body : Array(String)) : Array(String)
create a branch condition
-
#codegen : Array(String)
generate the code required to process this operation
- #cycles : UInt8
- #cycles=(cycles : UInt8)
- #cycles_branch : UInt8
- #cycles_branch=(cycles_branch : UInt8)
- #flags : Flags
- #flags=(flags : Flags)
-
#group : Group
read the group as a Group enum
- #length : UInt8
- #length=(length : UInt8)
- #name : String
- #name=(name : String)
-
#normalize_operand(operand : String) : String
normalize an operand to work with the existing cpu methods/fields
-
#operands : Array(String)
read the operation operands from the name
-
#set_flag_c(o : Object) : Array(String)
set flag c to the given value if specified by this operation
-
#set_flag_c!(o : Object) : Array(String)
set flag c to the given value
-
#set_flag_h(o : Object) : Array(String)
set flag h to the given value if specified by this operation
-
#set_flag_h!(o : Object) : Array(String)
set flag h to the given value
-
#set_flag_n(o : Object) : Array(String)
set flag n to the given value if specified by this operation
-
#set_flag_n!(o : Object) : Array(String)
set flag n to the given value
-
#set_flag_z(o : Object) : Array(String)
set flag z to the given value if specified by this operation
-
#set_flag_z!(o : Object) : Array(String)
set flag z to the given value
-
#set_reset_flags : Array(String)
generate code to set/reset flags if necessary
-
#type : String
read the operation type from the name
Constructor Detail
Instance Method Detail
normalize an operand to work with the existing cpu methods/fields
set flag c to the given value if specified by this operation
set flag h to the given value if specified by this operation
set flag n to the given value if specified by this operation
set flag z to the given value if specified by this operation