Add .dword directive
MODIFY
src/assembler/gnudirectives.cpp
src/assembler/gnudirectives.cpp
@@ -13,6 +13,7 @@ DirectiveVec gnuDirectives() {
add_directive(directives, ascizDirective());
add_directive(directives, zeroDirective());
add_directive(directives, byteDirective());
+ add_directive(directives, doubleDirective());
add_directive(directives, wordDirective());
add_directive(directives, halfDirective());
add_directive(directives, shortDirective());
@@ -91,6 +92,10 @@ Directive byteDirective() {
return Directive(".byte", &dataFunctor<1>);
}
+Directive doubleDirective() {
+ return Directive(".dword", &dataFunctor<8>);
+}
+
Directive wordDirective() {
return Directive(".word", &dataFunctor<4>);
}

MODIFY
src/assembler/gnudirectives.h
src/assembler/gnudirectives.h
@@ -18,6 +18,7 @@ Directive zeroDirective();
Directive stringDirective();
Directive ascizDirective();
+Directive doubleDirective();
Directive wordDirective();
Directive halfDirective();
Directive shortDirective();

Add .dword directive