15 April 2009, 14:14 | #1 |
gone
Join Date: Apr 2007
Location: completely gone
Posts: 1,596
|
Not sure if any of you chaps use the Ultraedit text editor for editing your code?
If you do the attachment might come in useful for you. It's a wordfile I knocked together for Ultraedit that can be used to automatically colour highlight your source code to make it easier to read. The couple of 68k wordfiles already on the Ultraedit site for download didn't seem to work too well when I tried them and weren't Amiga specific so this is my attempt at a better one. Currently it highlights all 68000 opcodes, registers, comments, some commonly used Devpac directives and all custom register names. You can easily edit the wordfile with a text editor to make it fit what you need if you need different things or anything extra. Be sure to rename the file extension from .txt to .uew and copy it to wherever you keep your Ultraedit wordfiles. Anyway, hope it's useful to someone - enjoy. PS. Forgot to mention, it only automatically highlights any text files you load into Ultraedit that are named with .68k or .s file extensions EDIT: Updated version of the wordfile attached to this post. It now highlights Amiga custom register addresses as well as custom register names. Also noticed and fixed a problem with highlighting of some upper case defined Devpac directives. Also updated now to highlight (almost) all Devpac directives. Last edited by pmc; 26 February 2010 at 12:23. |
15 April 2009, 14:55 | #2 | |
Digital Corruption
Join Date: Jan 2007
Location: Dorrigo/Australia
Age: 60
Posts: 355
|
Quote:
I use either Ultraedit or Editplus for text file editing. Editplus has nice highlighting features for various file extensions too. Recently started playing with Sweetscape 010 Editor, which also has neat scripts/templates which will also work on binary files. http://www.sweetscape.com/ Would be easy to create a template to disect AMIGA exe files to see HUNK info etc. Cheers, Red |
|
15 April 2009, 16:24 | #3 |
Join Date: Jul 2008
Location: Sweden
Posts: 2,269
|
This is very useful, thank you!
|
15 April 2009, 18:29 | #4 |
gone
Join Date: Apr 2007
Location: completely gone
Posts: 1,596
|
No problem boys, glad you can make use of it.
|
15 April 2009, 18:43 | #5 |
Registered User
Join Date: May 2001
Location: ?
Posts: 19,645
|
Wow that's great, I love UltraEdit!
|
16 April 2009, 09:49 | #6 |
Registered User
Join Date: Sep 2008
Location: Sesimbra/Portugal
Posts: 1,462
|
Yeah UltraEdit this program is awesome. I used to edit html code with it and was really a life saver when you needed to change the same string in a hundred pages with only one operation.
Nice work PMC, although i'm not a coder myself i recognize the importance of your uew file! |
16 April 2009, 10:09 | #7 |
gone
Join Date: Apr 2007
Location: completely gone
Posts: 1,596
|
Just in case anyone could do with an additional wordfile fix I put together another one for 6502 (6510) assembly code.
It highlights all 6502 (6510) opcodes (including illegal and DTV opcodes) and VIC-II, SID, CIA1 & CIA2 memory locations. It also highlights all of the assembler directives and commenting as used in KickAssembler V2.25, which is what I use. Again this could easily be amended or adapted for your own personal favourite assembler. PS. Forgot to mention it only automatically highlights any text files you load into Ultraedit that are named with .asm file extensions Last edited by pmc; 26 February 2010 at 12:23. |
29 April 2009, 14:03 | #8 |
Registered User
Join Date: Apr 2009
Location: Melbourne / Australia
Posts: 68
|
Thank you, I'm a big fan of UltraEdit.
The only thing is the annoying P&E Micros assembler I use for some 68332 work doesn't like bne.s, it has to be bne.b , but I will manually add those myself. Thanks, Ross |
29 April 2009, 23:04 | #9 |
Zone Friend
Join Date: Apr 2005
Location: Cider is best In The West
Posts: 1,238
|
Stupid question! How do I use the file to in UltraEdit32?
|
30 April 2009, 09:24 | #10 |
gone
Join Date: Apr 2007
Location: completely gone
Posts: 1,596
|
@ lopos2000: It depends on what version of Ultraedit you've got. If it's the latest version (version 15), and you've run the standard installation, you'll find that there's a wordfiles directory under this path:
Program Files\IDM Computer Solutions\UltraEdit-32 Just rename the file extension from .txt to .uew and copy it to this directory. And that's it. Then, whenever you load a file into Ultraedit with either a .68k or .s file extension the wordfile will automatically do the highlighting for you. If you're using an earlier version of Ultraedit then there's a slightly different method for placing and activating them I think - probably best to check the help within Ultraedit itself. Just search for wordfiles in the index and it'll tell you what to do... |
15 May 2009, 14:58 | #11 | |
gone
Join Date: Apr 2007
Location: completely gone
Posts: 1,596
|
Quote:
|
|
16 May 2009, 18:38 | #12 |
Zone Friend
Join Date: Apr 2005
Location: Cider is best In The West
Posts: 1,238
|
Thanks PMC for the help.
|
22 May 2009, 09:31 | #13 |
gone
Join Date: Apr 2007
Location: completely gone
Posts: 1,596
|
@ lopos2000 - no probs mate, anytime.
Uploaded a new version of the wordfile (attached to my first post). Found I'd forgotten to include the jmp opcode. Don't worry, I smacked myself in the head for being so dumb so none of you guys would have to do it for me... Oh, and there's a couple of other minor additions too. |
29 December 2011, 19:11 | #14 |
Posts: n/a
|
Uhm,
sorry, but I cannot see any attached file - looking for that wordfile, it's not here? best, Luke |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
|
|