Class: C8dasm::Commentf
- Inherits:
-
CommentBase
- Object
- CommentBase
- C8dasm::Commentf
- Defined in:
- lib/c8dasm/comments/commentf.rb
Instance Method Summary collapse
Methods inherited from CommentBase
#initialize, #kk, #nnn, #x, #y
Constructor Details
This class inherits a constructor from C8dasm::CommentBase
Instance Method Details
#to_s ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/c8dasm/comments/commentf.rb', line 5 def to_s case kk when '07' "Set V#{x} = delay timer value." when '0a' "Wait key press, store its value in V#{x}." when '15' "Set delay timer = V#{x}." when '18' "Set sound timer = V#{x}." when '1e' "Set I = I + V#{x}." when '29' "Set I = location of sprite for digit V#{x}." when '33' "Store BCD of V#{x} at I, I+1, and I+2." when '55' "Store registers V0..V#{x} starting at I." when '65' "Load registers V0..V#{x} starting from I." end end |