CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

Cursor mouvement after compilation in MPLAB

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
kitsh69



Joined: 13 May 2004
Posts: 2
Location: Montreal, canada

View user's profile Send private message Send e-mail Visit poster's website

Cursor mouvement after compilation in MPLAB
PostPosted: Thu May 13, 2004 7:52 pm     Reply with quote

Is there a way, in MPLAB, to prevent the cursor from jumping to the first line of the program after the compilation or to jump to the current excution line after a halt command ?

I want to be able to Compile, Run, Break, Reset without loosing the last line i've modified before compiling/running. Every time i'm doing a change and try the result, i have to reposition the cursur because MPLAB is jumping to the first line after compilation, and the "break line" after the break command..... it's VERY VERY time consuming to have to scan a file of 2000 or 2500 lines on every compilation.
prwatCCS



Joined: 10 Dec 2003
Posts: 67
Location: West Sussex, UK

View user's profile Send private message

PostPosted: Fri May 14, 2004 3:48 am     Reply with quote

add a comment to the line you have just changed and use the find facility to jump immediately to that comment.

comments on code that is changing seems a good idea anyway!
_________________
Peter Willis
Development Director
Howard Eaton Lighting Ltd UK
Haplo



Joined: 06 Sep 2003
Posts: 659
Location: Sydney, Australia

View user's profile Send private message

PostPosted: Fri May 14, 2004 5:08 am     Reply with quote

It jumps to the first line of the code because after a reset PC points to the first instruction (address 0x0000), which according to MPLAB corresponds to the first line of the code. PCWIDE does the same thing. As suggested you have to use some searching method to go back to your last position.
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Fri May 14, 2004 11:52 am     Reply with quote

A file of 2000+ lines?????

It sounds like a hell to retrieve something in such a file.... Sad

Why don't you split the file into several files? This will help you a lot to keep the overview. Way more professional too.... Cool

And as a bonus: MPLAB still sets the program counter to the start of your program, but this will only affect the view of your main file! All other files keep their old view location.
kitsh69



Joined: 13 May 2004
Posts: 2
Location: Montreal, canada

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Tue May 18, 2004 8:11 pm     Reply with quote

It's already split in several files (1 for main, and 4 includes) all 5 files have more than 6000 lines totals.

Even if it's a small program... like 100 ou 200 lines... I find it totally ridiculous that there's not an option to prevent that "feature".

I've never seen that in every other high level compiler i've used. (C, C++, C#, Pascal, etc)

I'm going to look if i can incorporate the "find feature" in a macro to mark automatically the last position, compile, and go back automatically all in a single press of an "F" key.
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Wed May 19, 2004 12:38 am     Reply with quote

Instead of only complaining and trying to find a way around it, have you considered to report this to the developers of MPLAB (Microchip)? There is no garuantee they will implement it, but if you never ask.... Cool
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group