Browse Source

+ write a comment for the CPU directive in the sdcc-sdasz80 asm output

git-svn-id: branches/z80@44812 -
nickysn 5 years ago
parent
commit
35742f4d0d
1 changed files with 14 additions and 0 deletions
  1. 14 0
      compiler/z80/agsdasz80.pas

+ 14 - 0
compiler/z80/agsdasz80.pas

@@ -828,6 +828,20 @@ unit agsdasz80;
               begin
                 WriteInstruction(taicpu(hp));
               end;
+            ait_directive :
+              begin
+                case tai_directive(hp).directive of
+                  asd_cpu :
+                    writer.AsmWriteLn('; CPU '+tai_directive(hp).name);
+                  else
+                    begin
+                      writer.AsmWrite(asminfo^.comment);
+                      writer.AsmWrite('WARNING: not yet implemented in assembler output: ait_directive.');
+                      Str(tai_directive(hp).directive,s);
+                      writer.AsmWriteLn(s);
+                    end;
+                end;
+              end;
             ait_marker :
               if tai_marker(hp).kind=mark_NoLineInfoStart then
                 inc(InlineLevel)