[stella] gedit syntax highlighting
dott.Piergiorgio
dott.piergiorgio at fastwebnet.it
Fri Jul 25 04:33:40 CDT 2008
Ben Larson ha scritto:
> I dunno if anyone besides me actually does any VCS development on a *nix platform, but regardless, I whipped up a .lang file to use with gedit which will do some basic 6502/VCS syntax highlighting for you (since I couldn't find anything on the internet).
>
> Just drop it in '/usr/share/gtksourceview-2.0/language-specs', then open up your asm file in gedit and go to 'View->Highlight Mode->Sources' and pick the '6502 Assembly (Atari 2600)' entry which should now be there.
>
> Anyone who actually makes use of this feel free to change/improve it. It's pretty basic right now, and I am definitely not the master of regular expressions so I can probably use all the help I can get... :)
very good, albeit actually basic (for example, don't know about the
common pseudo, like label & org) but surely will be an interesting
starting point :)
By the way, someone has tried to do macros useful for VCS/Stella
developers ? for instance, a "cycle counter" (in absence of a better
term) whose can count on the fly the cpu cycles from an user-defined
starting point and add at the end of the line the cycle count so far ?
for example, if one start marking a line
.label LOOP
as the starting point
then when one type
CLI
CLD
the (nameless) editor will generate
CLI ; cycle count: 2
CLD ; cycle count: 4
... and so on.
I'm sure the utility of this macro will be obvious in the VCS/Stella
context in wchich one must be careful about the CPU cycles consumed.
Hope that I haven't suggested a lamer thing :)
DISCLAIMER: I have intentionally NOT named specific editors, I guess
eyeryone know well what happens if one nominate one or both of the two
main editors used in *NIX environments ;)
Best regards from Italy,
Dott. Piergiorgio.
More information about the Stella
mailing list