Class: N65::InstructionBase
- Inherits:
-
Object
- Object
- N65::InstructionBase
- Defined in:
- lib/n65/instruction_base.rb
Direct Known Subclasses
ASCII, Bytes, DW, EnterScope, ExitScope, INESHeader, Inc, IncBin, Org, Segment, Space
Class Method Summary collapse
-
.parse(line) ⇒ Object
Sort of a “pure virtual” class method, not really tho.
Instance Method Summary collapse
-
#exec(assembler) ⇒ Object
Another method subclasses will be expected to implement.
-
#unresolved_symbols? ⇒ Boolean
Does this instruction have unresolved symbols?.
Class Method Details
.parse(line) ⇒ Object
Sort of a “pure virtual” class method, not really tho.
9 10 11 |
# File 'lib/n65/instruction_base.rb', line 9 def self.parse(line) fail(NotImplementedError, "#{self.class.name} must implement self.parse") end |
Instance Method Details
#exec(assembler) ⇒ Object
Another method subclasses will be expected to implement
23 24 25 |
# File 'lib/n65/instruction_base.rb', line 23 def exec(assembler) fail(NotImplementedError, "#{self.class.name} must implement exec") end |
#unresolved_symbols? ⇒ Boolean
Does this instruction have unresolved symbols?
16 17 18 |
# File 'lib/n65/instruction_base.rb', line 16 def unresolved_symbols? false end |