Re: 89C51ED2
- From: MooseFET <kensmith@xxxxxxxxx>
- Date: Wed, 10 Sep 2008 19:57:13 -0700 (PDT)
On Sep 10, 6:36 pm, krw <k...@xxxxxxxxxxxxxxxx> wrote:
In article <48C7E40F.1F3FA...@xxxxxxxxxxx>,
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.
--
Keith
.
- Follow-Ups:
- Re: 89C51ED2
- From: krw
- Re: 89C51ED2
- From: Eeyore
- Re: 89C51ED2
- References:
- Re: 89C51ED2
- From: Robert Baer
- Re: 89C51ED2
- From: MooseFET
- Re: 89C51ED2
- From: Eeyore
- Re: 89C51ED2
- From: MooseFET
- Re: 89C51ED2
- From: Eeyore
- Re: 89C51ED2
- From: TT_Man
- Re: 89C51ED2
- From: MooseFET
- Re: 89C51ED2
- From: Eeyore
- Re: 89C51ED2
- From: krw
- Re: 89C51ED2
- From: Eeyore
- Re: 89C51ED2
- From: krw
- Re: 89C51ED2
- From: Eeyore
- Re: 89C51ED2
- From: krw
- Re: 89C51ED2
- Prev by Date: Re: 89C51ED2
- Next by Date: Re: OT: Rants on election
- Previous by thread: Re: 89C51ED2
- Next by thread: Re: 89C51ED2
- Index(es):
Relevant Pages
|