Re: 89C51ED2





MooseFET wrote:

Eeyore wrote:
MooseFET wrote:
krw <k...@xxxxxxxxxxxxxxxx> wrote:
rabbitsfriendsandrelati...@xxxxxxxxxxx says...
krw wrote:
rabbitsfriendsandrelati...@xxxxxxxxxxx says...
krw wrote:

You don't do subroutines or interrupts?

declare procedure XYZ interrupt(1) using 1; (register bank 1) MAIN > > > >
defaults to register bank zero.

code

end;

For example. The interrupt number defines the int source.

Return address? USING only declares the register bank, it doesn't
set it.

Uh ? Bloody well does unless you have a different understanding of 'does' to me.

Not when I was using Intel's software. USING was only a directive
to get the compiler to point R0-7 to the right place. It didn't
actually load the pointers selecting the bank.

You remember wrong. USING tells the compiler what to assume is in the
PSW.4, PSW.3 bits. In PLM it most likely also results in a move into
the PSW.

In the ASM51, you could run with no declared bank by not putting a
USING into the code. This is handy when you want to make code that is
bank independent.

My 32 bit math library is bank independent so it can be used in
interrupts etc.

But you only used ASM51 not PL/M51 ?

I have used PLM51 just enough to be able to say I've used it. I used
PLM-80 and PLM-86 a great deal in the past. The language is almost
exactly the same among them.

Absolutely. That was the whole point of it. And the associated OS was CP/M.


In 8051 land, the only project I have seen that used PLM51 was
abandoned. It did not result in a product. This was a fault of
things other than the choice of the language.

Yes, well I've seen some shocking ASM51 too. With comments like "this seems to work". How some
people manange to migrate from company to company leaving a trail of disasters behing them never
fails to amaze me.

I can happily say I fixed TWO runaways. Both became serious commercial successes after my
intervention. One was primarily an analog fix, the other code (and coding method - a change to
finite state machine from a flow chart that resembled Medusa's locks).

Graham

.



Relevant Pages

  • Re: Lotto - Gaps - probability, HELP
    ... "I beg your pardon, sir. ... but that kind of language ... is not tolerated in this bank." ... the bank manager to inform him of her situation. ...
    (sci.math)
  • Is the bank closed already or closed still?
    ... the bank has closed already (as in: Konrad runs up to ... the bank is still closed (as in: ... any of the above (as in: the language of Japan likes to ...
    (sci.lang.japan)
  • Re: The Banks Failed; California Customers Wait
    ... The FDIC took over ailing IndyMac bank on Friday. ... Did you buy property in Argentina without knowing the language? ... repackaged and sold to mutual funds, retirement funds, municipalities and ... So the social liberal is now claiming that social engineering doesn't ...
    (misc.survivalism)
  • Re: 89C51ED2
    ... actually load the pointers selecting the bank. ... I have used PLM51 just enough to be able to say I've used it. ... things other than the choice of the language. ...
    (sci.electronics.design)