Browse Source

+ implemented ait_regalloc asm output for sdcc-sdasz80

git-svn-id: branches/z80@44491 -
nickysn 5 years ago
parent
commit
b1ea62f5f6
1 changed files with 6 additions and 0 deletions
  1. 6 0
      compiler/z80/agsdasz80.pas

+ 6 - 0
compiler/z80/agsdasz80.pas

@@ -458,6 +458,12 @@ unit agsdasz80;
                 writer.AsmWritePChar(tai_comment(hp).str);
                 writer.AsmLn;
               end;
+            ait_regalloc :
+              begin
+                if (cs_asm_regalloc in current_settings.globalswitches) then
+                  writer.AsmWriteLn(#9#9+asminfo^.comment+'Register '+std_regname(tai_regalloc(hp).reg)+' '+
+                    regallocstr[tai_regalloc(hp).ratype]);
+              end;
             ait_section :
               begin
                 if tai_section(hp).sectype<>sec_none then