Class: C8dasm::CommentBase
- Inherits:
-
Object
- Object
- C8dasm::CommentBase
show all
- Defined in:
- lib/c8dasm/comments/comment_base.rb
Direct Known Subclasses
Comment0, Comment1, Comment2, Comment3, Comment4, Comment5, Comment6, Comment7, Comment8, Comment9, Commenta, Commentb, Commentc, Commentd, Commente, Commentf
Instance Method Summary
collapse
Constructor Details
Returns a new instance of CommentBase.
5
6
7
|
# File 'lib/c8dasm/comments/comment_base.rb', line 5
def initialize(opcode)
@opcode = opcode
end
|
Instance Method Details
#kk ⇒ Object
13
14
15
|
# File 'lib/c8dasm/comments/comment_base.rb', line 13
def kk
@opcode[2, 2]
end
|
#nnn ⇒ Object
9
10
11
|
# File 'lib/c8dasm/comments/comment_base.rb', line 9
def nnn
@opcode[1, 3]
end
|
#x ⇒ Object
17
18
19
|
# File 'lib/c8dasm/comments/comment_base.rb', line 17
def x
@opcode[1]
end
|
#y ⇒ Object
21
22
23
|
# File 'lib/c8dasm/comments/comment_base.rb', line 21
def y
@opcode[2]
end
|