Class: RMasm::Directive
Overview
A Directive is the root class for
-
data directive (see data)
-
section directive (see section)
-
instruction directive (see instruction)
Direct Known Subclasses
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Instance Method Summary collapse
-
#fetch ⇒ Object
Send this directive to the assembler This method can be overriden by a directive in order to fetch several directive to the assembler.
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
32 33 34 |
# File 'lib/rmasm/directive.rb', line 32 def id @id end |
Instance Method Details
#fetch ⇒ Object
Send this directive to the assembler This method can be overriden by a directive in order to fetch several directive to the assembler
36 37 38 39 40 |
# File 'lib/rmasm/directive.rb', line 36 def fetch() return Report.error("Unable to process this directive. You have to specify an assembler first with [use arch] directive (example: use :x86)") if $rmasm.nil? $rmasm << self self end |