It is currently Mon Oct 20, 2014 4:04 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Sun Apr 03, 2011 9:28 pm 
Offline
User avatar
 Profile

Joined: Sat Mar 26, 2011 3:01 pm
Posts: 263
Location: Kings Langley
I know VSI is hard work, any chance of VSI integration like devkitpro.

Does anyone use BeebASM with Visual Studio - any version?

If not, I'll just try my old setup from the early GBA days.

richard

PS Done the nmake option - BeebASM is so fast that just setting BeebASM as the build tool and BeebEM as the exe to debug then Ctrl-F5 is fine - at least on the relocate sample.


Top
 
PostPosted: Mon Apr 25, 2011 5:11 pm 
Offline
User avatar
 Profile

Joined: Mon Jan 07, 2008 6:46 pm
Posts: 380
Location: Málaga, Spain
Unfortunately I don't even have a full version of VS (stuck with the Express versions), so I can't even start trying to write plugins.

But yeah, I tend to just use a makefile to build the code and launch B-Em - which I can run in a keypress from Textpad (haven't worked out how to do it in Notepad++ yet, but I'm sure it's more than feasible).

How have you dealt with things like syntax highlighting in Visual Studio?


Top
 
PostPosted: Tue Apr 26, 2011 5:40 pm 
Offline
User avatar
 Profile

Joined: Sat Mar 26, 2011 3:01 pm
Posts: 263
Location: Kings Langley
I haven't bothered, but you can add a single list that has its own colour, so I could add the key words to that.


Top
 
PostPosted: Mon Nov 25, 2013 10:19 pm 
Offline
User avatar
 Profile

Joined: Sat Mar 26, 2011 3:01 pm
Posts: 263
Location: Kings Langley
I have been using beebasm for quite a while with VS and only just thought to change the error message format so that go to error works!

Just change:
src\asmexception.cpp line 61
from:
cerr << m_filename << ":" << m_lineNumber << ": error: ";
to:
cerr << m_filename << "(" << m_lineNumber << "): error: ";


It is also easy to use an NMake project in VS to build/run by setting:
Configuration Properties | NMake | General:
| Build Command Line
$(ProjectDir)..\Tools\beebasm.exe -i project.asm -do project.ssd -boot GAME -v
| Clean Command
del project.ssd
| Output
project.ssd

and if you want to run from VS too:
Configuration Properties | Debugging:
| Command
path to your favourite emulator.exe
| Command Arguments
$(ProjectDir)$(ProjectName).ssd
| Working Directory
$(ProjectDir)


Top
 
PostPosted: Sun Dec 01, 2013 1:08 pm 
Offline
Site Admin
User avatar
 Profile

Joined: Wed Dec 19, 2007 10:46 pm
Posts: 779
Richard,

This sounds like it might be useful information to put up on the wiki - fancy writing a guide for us? :D

Sam.


Top
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron