Z80 Source-Code Tips -------------------- By Richard Degler March 20, 2010 Some clean-up that I do after running dZ80 2.0 (with built-in LUA support) is to capitalize the first 6 characters in every line since even with upper-case selected the labels are in lower-case. Use a suitable text editor (or maybe a DOS batch file could do it.) Quite a few commands have un-needed spaces trailing them. Delete those if your editor can do it all-at-once. There's a switch to insert a blank line after each RETurn found, but it also puts one after conditional RETs which I don't like. Since non-conditional jumps also should mark a break in program flow I search for "JP L" or "JR L" as well as "RET"s with a macro to insert a CR and Search, or Search again to skip. Less used is "JP (HL)" so I do those as I come across them. Unfortunately, when my script puts a semi-colon to mark the end of a UPI (User Program Interface) Macro it duplicates the Label if there is one on the next line. Have to clean those up by hand. It also lines up the comments over with the Jump Relative offsets. I always move them in closer by Replacing All "eight-spaces, semi-colon, two-spaces" with just "semi-colon, one-space". This is why there are two spaces before the comments! Not really, but I left the extra one in since it came in handy for this!! Use a mono-spaced font to view the output. Courier New is a standard one. Don't use any TABs because what lines up for you might not for others. Is that six or eight spaces? Full count or in columns from the left edge?? That seems like a lot of extra steps, but it's better than working from scratch.