View previous topic :: View next topic |
Author |
Message |
Ted Ems
Joined: 30 Dec 2003 Posts: 9
|
preemptive Multitasking |
Posted: Wed Jul 12, 2006 8:29 am |
|
|
The instruction bit_test(a,b) uses scratch area in ram. Can that area be determined at compile time. Or in a multitasking environment can an area be reserved for scratch for those instructions.
thanks |
|
|
asmallri
Joined: 12 Aug 2004 Posts: 1634 Location: Perth, Australia
|
|
Posted: Wed Jul 12, 2006 9:45 am |
|
|
Not in the code I have looked at recently. You might want to recheck your assumptions. _________________ Regards, Andrew
http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!! |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
|
Ted Ems
Joined: 30 Dec 2003 Posts: 9
|
Preemptive multitasking |
Posted: Wed Jul 12, 2006 7:36 pm |
|
|
PCM programmer
Thats exactly the way i am getting around this problem. Where did you find the information about the scratch area and when and what uses those areas?
Asmallri
You may be right i will take back that assumption. |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Wed Jul 12, 2006 8:33 pm |
|
|
That is Ttelmah's post so I'll let him answer. |
|
|
Ttelmah Guest
|
|
Posted: Thu Jul 13, 2006 4:06 am |
|
|
The start of the 'scratch' area, is defined in the chip setup (Tools, device editor, C Scratch RAM). Beyond this, as far as I know, it is just a matter of searching the listing. Historically there seem to be five locations in 'common' use (0 to 4). I'm afraid I don't know of any 'magic tool', that can tell you how much is used by particular functions...
Best Wishes |
|
|
|