Page 1 of 1

VS2015 Language Support

Posted: Sat Aug 29, 2015 9:17 am
by beannaich
Hello,

I started creating a visual studio extension for 6502 syntax highlighting, and I was wondering how useful something like this could be. If it's something everyone wants, I could also try adding solution/project/debugger support. Here is an example showing the syntax highlighting in action:

Image

I'm thinking of making files with the ".s" extension be recognized, then use the Linux style shebang at the top of the file to dictate which syntax to highlight.

Re: VS2015 Language Support

Posted: Tue Sep 01, 2015 4:36 am
by chenyu
great job!

Re: VS2015 Language Support

Posted: Tue Sep 01, 2015 5:05 am
by thefox
Debugger support would be cool, but how were you planning to do it?

Re: VS2015 Language Support

Posted: Tue Sep 01, 2015 4:22 pm
by beannaich
chenyu wrote:great job!
Thanks :)
thefox wrote:Debugger support would be cool, but how were you planning to do it?
That all depends. If any existing compilers generate a line-to-code mapping file, then I can use one of those, if not then I'll have to make an assembler that can. That aside, I would probably do what is done currently for Android/iOS debugging; build the code and run it in an emulator that communicates with Visual Studio.

Re: VS2015 Language Support

Posted: Tue Sep 01, 2015 7:20 pm
by nicklausw
Awfully ambitious, but hey, I'd use this. Been looking for a change after over a year of using ConTEXT.

Re: VS2015 Language Support

Posted: Tue Sep 01, 2015 7:53 pm
by lidnariq
beannaich wrote:If any existing compilers generate a line-to-code mapping file, then I can use one of those, if not then I'll have to make an assembler that can.
The cc65 suite can, if asked to (--dbgfile). It seems to be a little cryptic, though.

Re: VS2015 Language Support

Posted: Tue Sep 01, 2015 9:23 pm
by thefox
lidnariq wrote:
beannaich wrote:If any existing compilers generate a line-to-code mapping file, then I can use one of those, if not then I'll have to make an assembler that can.
The cc65 suite can, if asked to (--dbgfile). It seems to be a little cryptic, though.
cc65 provides a C module that can be used to parse the generated debug information: https://github.com/cc65/cc65/tree/master/src/dbginfo

Re: VS2015 Language Support

Posted: Wed Sep 02, 2015 4:17 pm
by beannaich
nicklausw wrote:Awfully ambitious, but hey, I'd use this. Been looking for a change after over a year of using ConTEXT.
I was wondering how much use something like this would see if completed, so this is encouraging.
thefox wrote:
lidnariq wrote:
beannaich wrote:If any existing compilers generate a line-to-code mapping file, then I can use one of those, if not then I'll have to make an assembler that can.
The cc65 suite can, if asked to (--dbgfile). It seems to be a little cryptic, though.
cc65 provides a C module that can be used to parse the generated debug information: https://github.com/cc65/cc65/tree/master/src/dbginfo
Thanks guys, I'll take a look when I get more free time. Hopefully this weekend. I'm thinking of throwing this project on Github and letting everyone contribute :)