Support for 8051

Mar 24, 2011 at 5:55 AM

I've just installed the AsmHighlither and tested with some 8051 code. Although is not specifically meant for 8051, it is doing great syntax-coloring job and I am going to switch from my current editor to VS2010 + AsmHighlither. I was wandering if it is possible to:

1) add a list of custom keywords and make this work better for 8051 assembly language
2) make 8051 labels  (e.g.  label1: ) get recognized and have their own color

Thanks for the great work!

Mar 24, 2011 at 8:26 AM

OK, I found that the instructions, registers, etc. are defined in MASMKeywords.map so I thought I would modify the file to suit 8051 and rebuild the solution. I downloaded the source code and tried to rebuild the solution just to make sure it works before changing anything. It complained it could not find the License.rtf in the AsmHighlighter folder, but I found it in the parent folder (solution root) so I copied it from there and it was happy - it rebuilt successfully. Then I installed the VSIX file with double click ran VS. When I tried to open an ASM file, I got an error: The AsmHighlighter.AsmHighlighter, AsmHighlighter, Version 1.4.0.0, Culture=neutral, PublicKeyToken=null' package did not load correctly. The problem may have been caused by a configuration change ..." and suggested to check the XML file ActivityLog.xml. The file had two lines with errors:

219 ERROR CreateInstance failed for package [AsmHighlighter.AsmHighlighter, AsmHighlighter, Version=1.4.0.0, Culture=neutral, PublicKeyToken=null] {E767EF4D-28FE-4F99-AA6D-4107399D0837} 80070002 VisualStudio 2011/03/24 06:40:47.890

220 ERROR End package load [AsmHighlighter.AsmHighlighter, AsmHighlighter, Version=1.4.0.0, Culture=neutral, PublicKeyToken=null] {E767EF4D-28FE-4F99-AA6D-4107399D0837} 80004005 - E_FAIL VisualStudio

The bottom line is, when I rebuild the original source code from the web site and install it doesn't work. I tried installing back the original VSIX file from the web site and that one does work. Is there anything that I am missing when rebuilding the solution?  By the way, I rebuilt the solution for Debug. When rebulding for Release, I get an error with error HRESULT E_FAIL from a call to a COM component.

I tried rebuilding & installing on both XP/SP3-x86 and Win7-x64 - same result. Any help will be much appreciated.

Thank you.

Mar 24, 2011 at 7:56 PM

I have to apologize as I won't have access to my dev machine for 10 days. I will get come back to you as soon as possible.

This is the right way to add keywords, though I don't know why the building process is not working. I will check if all files were checked-in.

 

 

Apr 12, 2011 at 1:40 PM

Hi Alexandre, I was wandering if you had a chance to look at why the VSIX reports an error when loading ASM file and why the building process doesn't work for Release.

Apr 12, 2011 at 1:59 PM

I have uploaded missing license.rtf and update old pkgdef file (see revision 65421). You should build the files from this revision (associated with 1.5 version).

Try first to recompile and install the original version in order to check if the vsix install is working. Let me know if this is working or not.

Apr 12, 2011 at 3:15 PM

Now it works! I cannot imagine using IDE other than VS and now you have made it possible for 8051 too - thanks a lot!

Apr 12, 2011 at 3:17 PM

Great, thanks for the report.

Apr 29, 2011 at 6:01 PM

Hi Alexandre,

 

  I am using VS 2008 and would like to also use Asmhighlighter for 8051 code development, as well. Can I modify the MASMKeywords.map like tkimovski did for VS 2010? If so, where do I find that file, and what should I keep in mind as I go thru this effort.

 

 Thanks in advance.....Steph

Apr 29, 2011 at 6:24 PM

Unfortunately, I'm not maintaining anymore the VS2008 version... Though, you can try to update the VS2008 projects with new files&co and try to recompile the project yourself.

Apr 29, 2011 at 9:31 PM

I appreciate that you've "moved on", so to speak. Can you tell me what files (and where they might be located) that I should be looking at to make mods? Is there anything like the MASMKeywords.map file used for ASM V1.3?

 

Thanks and cheers....Steph

Apr 29, 2011 at 9:36 PM

You need to look at AsmHighlighter.csproj (VS2008) and AsmHighlighterVS2010.csproj, and try to add missing .cs and .map file to the VS2008 Project.