]> git.sur5r.net Git - cc65/blobdiff - src/da65/handler.c
Added two new global options, NewlineAfterJMP and NewlineAfterRTS.
[cc65] / src / da65 / handler.c
index 82a88bed210828991b9e1df75d0245ded9d68c9e..b5c2005eaffc5197da36f2f273f2afc33bb2211e 100644 (file)
@@ -555,6 +555,9 @@ void OH_AbsoluteXIndirect (const OpcDesc* D attribute ((unused)))
 void OH_Rts (const OpcDesc* D)
 {
     OH_Implicit (D);
+    if (NewlineAfterRTS) {
+        LineFeed ();
+    }
     SeparatorLine();
 }
 
@@ -563,6 +566,9 @@ void OH_Rts (const OpcDesc* D)
 void OH_JmpAbsolute (const OpcDesc* D)
 {
     OH_Absolute (D);
+    if (NewlineAfterJMP) {
+        LineFeed ();
+    }
     SeparatorLine ();
 }
 
@@ -571,7 +577,10 @@ void OH_JmpAbsolute (const OpcDesc* D)
 void OH_JmpAbsoluteIndirect (const OpcDesc* D)
 {
     OH_AbsoluteIndirect (D);
-    SeparatorLine ();
+    if (NewlineAfterJMP) {
+        LineFeed ();
+    }
+    SeparatorLine ();  
 }