glurk Posted April 30, 2021 Share Posted April 30, 2021 Sorry if this is a dumb question, I REALLY looked for an answer. Does anyone use "code-folding" in DASM? So you can open/collapse large sections of code in an editor? I know some assemblers use ".proc" and ".endproc" but DASM treats these as labels and gives a redefined label error. I'd just like to use some kind of delimiters that DASM will ignore, so that I can set my editor to use them. That way I won't have just this huge, run-on listing.... Can a macro make it just plain IGNORE .proc and .endproc for example? What does everyone else use? I've been unable to find an answer. Quote Link to comment Share on other sites More sharing options...
Thomas Jentzsch Posted April 30, 2021 Share Posted April 30, 2021 You could use comments (e.g. ";{" and ";}") 1 Quote Link to comment Share on other sites More sharing options...
+splendidnut Posted April 30, 2021 Share Posted April 30, 2021 Not a dumb question at all. I don't think I've ever thought of utilizing an editor's code-folding feature for assembly code. Recently, I've gotten into the habit of using macros (MAC name ... ENDM) to encapsulate chunks of code. It's an easy way to make relocatable code. Quote Link to comment Share on other sites More sharing options...
+Andrew Davie Posted April 30, 2021 Share Posted April 30, 2021 Atari Developer Studio (based on Visual Developer Studio) does code folding in .asm files (i.e., dasm files) on a label granularity... I click on that down arrow on line 460 and get... i.e., lines 461-483 are hidden. It appears that the code-fold is terminated by a ";" in column 0 I don't use it, but it appears to be very functional! I also highly recommend Atari Developer Studio! It has smart-linking -- Command-click on any variable/label and you're taken to its definition line -- wherever that may be. Very handy! 1 Quote Link to comment Share on other sites More sharing options...
+SpiceWare Posted April 30, 2021 Share Posted April 30, 2021 Also check Club DASM if you need help in the future. If we get all these questions and answers in one location its easier for others to find them in the future. Quote Link to comment Share on other sites More sharing options...
JetSetIlly Posted April 30, 2021 Share Posted April 30, 2021 I set up Vim to fold between any two lines starting with: ; ---- Simple but effective. For example, this is what I see on startup and with the "Data - Constants" fold open: 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.