Searching \ for 'org command.' 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/index.htm?key=org+command
Search entire site for: 'org command.'.

Truncated match.
PICList Thread
'org command.'
1997\04\02@034645 by Bert Harms

flavicon
face
Hello,

A small question about the CCS C-compiler.
Is there a way to put my assembly instructions on a adres of my choise.

I want to put my own ISR routine on adres 0x04 and not the ISR-routine that is
normaly generated
by the CCS-compiler.


Bert Harms

1997\04\02@061005 by Mike Smith

flavicon
face
----------
> From: Bert Harms <spam_OUTerhbehaTakeThisOuTspamERHS74.ERICSSON.SE>
> To: .....PICLISTKILLspamspam@spam@MITVMA.MIT.EDU
> Subject: org command.
> Date: Wednesday, 2 April 1997 18:16
>
> Hello,
>
> A small question about the CCS C-compiler.
> Is there a way to put my assembly instructions on a adres of my choise.
>
> I want to put my own ISR routine on adres 0x04 and not the ISR-routine
that is
>  normaly generated
> by the CCS-compiler.
>

This isn't a precise reply, but might do what you want...
If you use the #INT_GLOBAL preproc command, it replaces the standard ISR's
with your own, custom, ISR. (residing at 0x04) It even generates the
correct type of return at the end of your ISR.

MikeS

1997\04\02@070721 by Andy Kunz

flavicon
face
At 03:46 AM 4/2/97 -0500, you wrote:
>A small question about the CCS C-compiler.
>Is there a way to put my assembly instructions on a adres of my choise.
>
>I want to put my own ISR routine on adres 0x04 and not the ISR-routine
that is
> normaly generated
>by the CCS-compiler.

Bert,

I've been BEGGING CCS to enable ORG.  No luck so far, though.

To accomplish what you want, use #int_global

You need to be careful about what version of the compiler you are using,
though, as CCS has changed (and not documented it, as usual) what it does
with regard to saving the working registers.

Send me private mail if you need more info.

Andy

==================================================================
Andy Kunz - Montana Design - 409 S 6th St - Phillipsburg, NJ 08865
         Hardware & Software for Industry & R/C Hobbies
       "Go fast, turn right, and keep the wet side down!"
==================================================================

1997\04\02@070723 by Andy Kunz

flavicon
face
>This isn't a precise reply, but might do what you want...
>If you use the #INT_GLOBAL preproc command, it replaces the standard ISR's
>with your own, custom, ISR. (residing at 0x04) It even generates the
>correct type of return at the end of your ISR.

MAYBE!  You never know when CCS is going to change that, too.  I get rather
frustrated with them changing operations of things and not documenting it.

Andy

==================================================================
Andy Kunz - Montana Design - 409 S 6th St - Phillipsburg, NJ 08865
         Hardware & Software for Industry & R/C Hobbies
       "Go fast, turn right, and keep the wet side down!"
==================================================================

1997\04\02@213859 by Mike Smith

flavicon
face
> From: Andy Kunz <montanaspamKILLspamFAST.NET>
> To: .....PICLISTKILLspamspam.....MITVMA.MIT.EDU
> Subject: Re: org command.
> Date: Wednesday, 2 April 1997 21:34
>
> >This isn't a precise reply, but might do what you want...
> >If you use the #INT_GLOBAL preproc command, it replaces the standard
ISR's
> >with your own, custom, ISR. (residing at 0x04) It even generates the
> >correct type of return at the end of your ISR.
>
> MAYBE!  You never know when CCS is going to change that, too.  I get
rather
> frustrated with them changing operations of things and not documenting
it.

True.  One revision contained a *jump* at location 0x04, which was
unfortunate, if the interrupt came whilst you were executing code in page
1.  I ended up having to put some special purpose code at the beginning of
page 1 to make it go to page 0.  With CCS you need the 1 year maintenance
contract.  Glad it's a reasonable price...

MikeS

1997\04\02@221629 by Andy Kunz

flavicon
face
>With CCS you need the 1 year maintenance
>contract.  Glad it's a reasonable price...

They fixed that bug, I think.

I didn't think it was a reasonable price.  Shoot, it only takes $95 a year
to get a better MSVC++ package, and the subscription is a lot better.  And
they document better (notice I didn't say "well").  CCS is why I looking at
Avocet right now.  I've used their products on Mot and Zilog and Intel
parts rather successfully.

Andy

==================================================================
Andy Kunz - Montana Design - 409 S 6th St - Phillipsburg, NJ 08865
         Hardware & Software for Industry & R/C Hobbies
       "Go fast, turn right, and keep the wet side down!"
==================================================================

1997\04\02@231844 by John Payson

picon face
> I've been BEGGING CCS to enable ORG.  No luck so far, though.
>
> To accomplish what you want, use #int_global
>
> You need to be careful about what version of the compiler you are using,
> though, as CCS has changed (and not documented it, as usual) what it does
> with regard to saving the working registers.

CCS's lack of documentation is IMHO a major weakness with that compiler; for
every project I do at work I make a copy of the compiler that was current when
I did the project to ensure that a new compiler version won't break everything.

By contrast, on a 68HC11 project I did for a client, I used a $2000 C compiler
by Introl.  No fancy IDE or anything--just a simple DOS-based compiler and
liker package.  I'd still say it was worth every penny (to my client, in terms
of the time it saved me).  My biggest praise: it worked.  Solidly.  The code
it generated was not always the best but it never generated buggy code from
correct C.

The CCS compiler, on the other hand, is 1/20 the price and, as the saying
goes, "you get what you pay for".  I've used the CCS compiler for a few pro-
jects and if you're cognizant of what you're doing and what it's doing it's
a useful tool.  One can't feed it code and be certain the compiler won't
munge it, but if one is cognizant of what it might do most such problems
can be solved easily, at least with small projects.  [BTW, even some very
good compilers such as Apple's MPW have had code generation bugs; MPW C 3.2
had a command-line option to enable larger-than-32K stack frames.  The code
for popping the stack frame used a 16-bit signed add, however; since the
stack pointer was reloaded from the frame pointer this didn't crash the mach-
ine, but it did cause saved registers to be trashed.  In MPW C 3.3, they fixed
the handling of >64K stack frames but still used a 16-bit SIGNED add for those
between 32K and 64K.  Oh well...]

1997\04\03@002620 by Lee Jones

flavicon
face
>> With CCS you need the 1 year maintenance contract.

> I didn't think it was a reasonable price.  Shoot, it only takes
> $95 a year to get a better MSVC++ package, and the subscription
> is a lot better.

I don't know where you shop, but I've never been able to buy
Microsoft Visual C++ for anywhere near $95.  And the subscription
program is history.  Microsoft didn't even have the decency to
fulfill existing subscriptions to their end.  I got notified in
a letter from them explaining the refund program.  Guess they
weren't making enough profit off their developer base.

                                               Lee Jones

1997\04\04@002224 by Mike Smith

flavicon
face
> From: Lee Jones <EraseMEleespam_OUTspamTakeThisOuTFRUMBLE.CLAREMONT.EDU>
> To: PICLISTspamspam_OUTMITVMA.MIT.EDU
> Subject: Re: org command.
> Date: Thursday, 3 April 1997 14:55
>
> >> With CCS you need the 1 year maintenance contract.
>
> > I didn't think it was a reasonable price.  Shoot, it only takes
> > $95 a year to get a better MSVC++ package, and the subscription
> > is a lot better.
>
> I don't know where you shop, but I've never been able to buy
> Microsoft Visual C++ for anywhere near $95.  And the subscription
> program is history.  Microsoft didn't even have the decency to
> fulfill existing subscriptions to their end.  I got notified in
> a letter from them explaining the refund program.  Guess they
> weren't making enough profit off their developer base.
>
Is it history?  Whats the latest VC then?  They sent me a 4.2 lateish last
year. (as part of the sub program)
Furthermore, I've seen a brochure from MS that still sells subs (including
an all in one language pack VC - Java etc)

MikeS

1997\04\04@002232 by Mike Smith
flavicon
face
> From: John Payson <@spam@supercatKILLspamspamMCS.NET>
> To: KILLspamPICLISTKILLspamspamMITVMA.MIT.EDU
> Subject: Re: org command.
> Date: Thursday, 3 April 1997 13:37
>
> > I've been BEGGING CCS to enable ORG.  No luck so far, though.
> >
> > To accomplish what you want, use #int_global
> >
> > You need to be careful about what version of the compiler you are
using,
> > though, as CCS has changed (and not documented it, as usual) what it
does
> > with regard to saving the working registers.
>
> CCS's lack of documentation is IMHO a major weakness with that compiler;
for
> every project I do at work I make a copy of the compiler that was current
when
> I did the project to ensure that a new compiler version won't break
everything.
>
Agreement.  When you are in the developing process for a given project, and
you hit a problem that is compiler-caused, you have to, in many cases, get
them to fix it.  At that point, you then have to test all of your already
tested code for new errors.  Grrrh!  I've certainly got out of the habit of
changing versions for no reason...

MikeS

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