On Mon, 19 Oct 1998 19:00:52 +1300 Graham Daniel
<spam_OUTg.daniel.invent.designTakeThisOuT
xtra.co.nz> writes:
{Quote hidden}>Hi James
>There's an easy solution, I've made some cuts from a working program,
>should give you the general idea:
>
>James Cameron wrote:
>>
>> Obligatory PIC query ... how do you declare file register data space
>in gpasm or mpasm?
>-----------------------------------------------------------------
>; : check rambase matches processor !
> CBLOCK H'0C'
>
> INT_W,INT_STATUS,INT_FSR
>
> TRX_PTR,XBITPOS
><cut>
> DIGIT_COUNT
>
> ASCII
>
> ENDC
>
Also, you can have an "empty" cblock/endc at the top of your code
that merely defines the starting address of user RAM.
cblock 0x20
endc
Then, elsewhere in your code, you can have cblock/endc with no
address. This will use the next available address. it allows you to
encapsulate your subroutines, putting variables used by the routine with
the routine. Almost as good as local variables...
Harold
Harold Hallikainen
.....haroldKILLspam
@spam@hallikainen.com
Hallikainen & Friends, Inc.
See the FCC Rules at http://hallikainen.com/FccRules and comments filed
in LPFM proceeding at http://hallikainen.com/lpfm
___________________________________________________________________
You don't need to buy Internet access to use free Internet e-mail.
Get completely free e-mail from Juno at http://www.juno.com
or call Juno at (800) 654-JUNO [654-5866]