Searching \ for '[PIC:] Moving around in MPLAB' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/microchip/languages.htm?key=mplab
Search entire site for: 'Moving around in MPLAB'.

Exact match. Not showing close matches.
PICList Thread
'[PIC:] Moving around in MPLAB'
2004\04\19@043659 by Jinx

face picon face
Do versions later than 6.20 have bookmarks to jump to line
numbers easily  ? I'm working on a couple of big programs in
6.20 and it's a real PITA remembering line numbers to scroll
to. Alternatively, any suggestions for doing it without bookmarks,
apart from Ctrl G, or is that as simple as it's going to get ?

TIA

(PS inconvenient to d/l a new MPLAB, and especially if there's
no great advantage in doing so)

==============================================
Research is what I'm doing when I don't know what I'm doing
- Wernher von Braun

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email spam_OUTlistservTakeThisOuTspammitvma.mit.edu with SET PICList DIGEST in the body

2004\04\19@045115 by Alan B. Pearce

face picon face
>Do versions later than 6.20 have bookmarks to jump to line
>numbers easily  ? I'm working on a couple of big programs in
>6.20 and it's a real PITA remembering line numbers to scroll
>to. Alternatively, any suggestions for doing it without bookmarks,
>apart from Ctrl G, or is that as simple as it's going to get ?

You mean you don't have the program broken up into modules so each module
has its own window?

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email .....listservKILLspamspam@spam@mitvma.mit.edu with SET PICList DIGEST in the body

2004\04\19@050606 by Jinx

face picon face
> You mean you don't have the program broken up into modules
> so each module has its own window?

Um, no. Explain please

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email listservspamKILLspammitvma.mit.edu with SET PICList DIGEST in the body

2004\04\19@051019 by Hulatt, Jon

flavicon
face
Use multiple .asm files, in each one have a single function/procedure. Let
the linker do the rest.

If you're having to remember line numbers, your files are too big.

> {Original Message removed}

2004\04\19@053547 by Alan B. Pearce

face picon face
>> You mean you don't have the program broken up into modules
>> so each module has its own window?
>
>Um, no. Explain please

When your program has multiple modules then each source file has its own
window within MPLAB, making it much easier to jump back and forth between
them. Apart from this separating the code into modules like this makes
re-use easier, and gives reasonable data abstraction.

And I did mean to put a smiley on the previous post, sorry.

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email .....listservKILLspamspam.....mitvma.mit.edu with SET PICList DIGEST in the body

2004\04\19@060326 by Jan-Erik Soderholm

face picon face
Jinx wrote :

> Do versions later than 6.20 have bookmarks to jump to line
> numbers easily  ?

You can (in 6.50 at least) :

- Toggle bookmark, ctrl-K.
- Jump to next bookmark, ctrl-L.
- Jump to prev bookmark, ctrl-J.

You can also ctrl-G and from a list goto a specific
"label" in your code. By adding dummy lables, you cold
get your own bookmarks with "real" names...

And, I'm not sure what you mean by "jmp to line numbers".
At least in my source files, there are no line numbers at all...

Jan-Erik.

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email EraseMElistservspam_OUTspamTakeThisOuTmitvma.mit.edu with SET PICList DIGEST in the body

2004\04\19@060947 by David Duffy

flavicon
face
Jinx wrote :

>>Do versions later than 6.20 have bookmarks to jump to line
>>numbers easily  ?
>>
>>

Jan-Erik wrote:

{Quote hidden}

Jinx means the line numbers shown in the status bar.
You've never noticed them before?
David...

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email listservspamspam_OUTmitvma.mit.edu with SET PICList DIGEST in the body

2004\04\19@061609 by Jinx

face picon face
> And, I'm not sure what you mean by "jmp to line numbers".
> At least in my source files, there are no line numbers at all...

Edit/Properties/Editor - tick Line Numbers

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email @spam@listservKILLspamspammitvma.mit.edu with SET PICList DIGEST in the body

2004\04\19@071120 by Omer YALHI

flavicon
face
>Jinx means the line numbers shown in the status bar.
>You've never noticed them before?
>David...

In my setup I have line numbers on every line

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email KILLspamlistservKILLspamspammitvma.mit.edu with SET PICList DIGEST in the body

2004\04\19@073612 by Jinx

face picon face
> - Toggle bookmark, ctrl-K.
> - Jump to next bookmark, ctrl-L.
> - Jump to prev bookmark, ctrl-J.
>
> Jan-Erik.

Thanks for that - I'll d/l 6.50 when I'm able

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email RemoveMElistservTakeThisOuTspammitvma.mit.edu with SET PICList DIGEST in the body

2004\04\19@080804 by Jinx

face picon face
Thanks Alan and Jon re: linker

I've never written a program that way. I've seen the threads
about the linker but, not being familiar with it, tended to go a
little glassy-eyed. Those threads should still be in my folder.
This current project is quite close to finishing so I'll leave it
alone, but I'll be looking into the linker tutorials for next time

Tell me - if a program is written in a modular style, can you
selectively write a particular module's assembly to the chip ?

IOW, when the modules are compiled, do they always compile
into a single .hex file ? Usually under Programmer/Settings I'd
enter the Start and End address for the whole .hex file that is
produced from a single .asm file. If only a small piece of the
code, eg a single number or data value, is changed, to re-
program just that value in the chip you'd need to find it in program
memory and set the Start/End addresses accordingly. Does
each module in the linker style of programming have its own
Start/End addresses ?

(BTW, to program an 18F452 you need to "Erase Flash Device"
first, which might screw things up)

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email spamBeGonelistservspamBeGonespammitvma.mit.edu with SET PICList DIGEST in the body

2004\04\19@081425 by David Duffy

flavicon
face
Omer YALHI wrote:

>>Jinx means the line numbers shown in the status bar.
>>You've never noticed them before?
>>David...
>>
>>
>
>In my setup I have line numbers on every line
>
>

Yes, as Jinx pointed out you can turn them on in the side bar too.
David...

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email TakeThisOuTlistservEraseMEspamspam_OUTmitvma.mit.edu with SET PICList DIGEST in the body

2004\04\19@082048 by hael Rigby-Jones

picon face
{Quote hidden}

You end up with just one hex file.  Each module is assembled into an object
file, and once all modules have been assembled, all the object files are
linked together to produce the final hex file.

The beauty of this approach is code reuse, you can put all your favorite
functions into separate modules and just link them into you project as and
when you need them.  It also make maintaining the code much easier, as you
are dealing with several small files rather that one massive one.

Regards

Mike




=======================================================================
This e-mail is intended for the person it is addressed to only. The
information contained in it may be confidential and/or protected by
law. If you are not the intended recipient of this message, you must
not make any use of this information, or copy or show it to any
person. Please contact us immediately to tell us that you have
received this e-mail, and return the original to us. Any use,
forwarding, printing or copying of this message is strictly prohibited.
No part of this message can be considered a request for goods or
services.
=======================================================================
Any questions about Bookham's E-Mail service should be directed to
EraseMEpostmasterspambookham.com.

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email RemoveMElistservEraseMEspamEraseMEmitvma.mit.edu with SET PICList DIGEST in the body

2004\04\19@083124 by Alan B. Pearce

face picon face
>Tell me - if a program is written in a modular style, can you
>selectively write a particular module's assembly to the chip ?
>
>IOW, when the modules are compiled, do they always compile
>into a single .hex file ? Usually under Programmer/Settings I'd
>enter the Start and End address for the whole .hex file that is
>produced from a single .asm file. If only a small piece of the
>code, eg a single number or data value, is changed, to re-
>program just that value in the chip you'd need to find it in program
>memory and set the Start/End addresses accordingly. Does
>each module in the linker style of programming have its own
>Start/End addresses ?
>
>(BTW, to program an 18F452 you need to "Erase Flash Device"
>first, which might screw things up)

The linker produces the hex file when doing things this way. But the whole
thing can be simplified by the use of batch files. Check out Olin's
development environment for one method of doing this. I find that using his
environment, with an editor outside MPLAB (Ultraedit is my choice, with an
expanded highlighter file) and then having a DOS box open in background to
fire off the batch file makes for a very easy and quick assembly cycle.
Jan-Erik has documented the loops to go through to run the batch file direct
from Ultraedit, on his website. he also has a very nice PDF version of
Olin's documentation.

http://www.embedinc.com/pic/
http://www.st-anna-data.se/

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email RemoveMElistservspam_OUTspamKILLspammitvma.mit.edu with SET PICList DIGEST in the body

2004\04\19@115711 by Jan-Erik Soderholm

face picon face
Alan B. Pearce wrote :

> Jan-Erik has documented the loops to go through to run the
> batch file direct from Ultraedit, on his website.

Hi.
I'd just like to add, that this is nothing "fancy". It's just UE's builtin
way of putting a user supplied command as a "button" in UE's toolbar.

I just put defined a button that runs a BAT file that runs a MAKE tool
to rebuild the app. I also checkmark "automatic save of all files" when
defining the button, so there is no separate "save" step.

The linked BAT file also runs XWisp, so the app gets re-built and the
PIC re-programmed with a single "click" inside UE. Any error output
is automaticly loaded into a separet window in UE...


> he also has a very nice PDF version of
> Olin's documentation.
>
> http://www.embedinc.com/pic/
> http://www.st-anna-data.se/

He he, thanks !
Maybe time to checkout if there have been any updates to
Olins envir. It's a but hard to know, these days... :-) :-)

Jan-Erik.

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email RemoveMElistservTakeThisOuTspamspammitvma.mit.edu with SET PICList DIGEST in the body

More... (looser matching)
- Last day of these posts
- In 2004 , 2005 only
- Today
- New search...