Coldfire 5282 TAS instruction code
Phil Roets <[email protected]> Thu, 17 Jul 2008 14:50:49 +0200
| Newsgroups | gmane.comp.hardware.motorola.microcontrollers.coldfire |
|---|---|
| Organization | Geosystems |
| Message-ID | <[email protected]> |
X-SpamDetect-Info: ------------- Start ASpam results ---------------
X-SpamDetect-Info: This message may be spam. This message BODY has been altered to show you the spam information
X-SpamDetect: *******: 7.000000 spf adsl=3.0, GreyPassed=1.0, DodgySource=2.0, SPF Default Fail=1.0
X-SpamDetect-Info: ------------- End ASpam results -----------------
hi
I am developing a multitask application on a MFC5282 board and intended
to create a semaphore type method to control access to some of the
common variables. Replacing the 'tst.b' with 'tas.b' in the snippet :
move.l 4(%sp),%a0
move.l #128,%d0
tas.b (%a0)
jbne .L4
move.b #-128,(%a0)
clr.b %d0
..L4:
rts
causes a 'invalid instruction for the architecture ... ' during
compilation with the m68k-uclinux-tools-20061214 tool set.
Can anybody suggest a way around the problem ?
Thanks
Phil Roets
---
[email protected] Send a post to the list.
[email protected] Join the list.
[email protected] Join the list in digest mode.
[email protected] Leave the list.