From mint-bounce@lists.fishpool.fi  Thu Jun  4 10:37:00 2009
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=gamma;
        h=domainkey-signature:received:received:cc:message-id:from:to
         :in-reply-to:content-type:content-transfer-encoding:mime-version
         :subject:date:references:x-mailer;
        bh=H4YpphSsPKMDRDdqOml6qzPA1+pg/qwrZuWU3NqeOKA=;
        b=sWCdGOutGv5qtJIjln9D14wvNKdQKHByqpkluvGZ3botThjaxwqjw4K+d/A+0z2B13
         tEKV0oPR3BS4vJ1QgoH6/ESF9lgSvJ8eFAKEgEp5aFI5tFWiQBJMFpeb0KpOoFPkGJmp
         2BnRA0llaxRJiTbKQIVo5UlP9sM8q1lc+7n5s=
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=gamma;
        h=cc:message-id:from:to:in-reply-to:content-type
         :content-transfer-encoding:mime-version:subject:date:references
         :x-mailer;
        b=a9Y5dMIhhgbD4ZhvEzXC4AISIiQUn4yWQ7ScLf/E8C9iA9kYnTY2oCqyJKx/f+Iutf
         uXXQBocYev8QdM1gEeUEVrV3WPkr+bj/MpsKBfHfmZwnfOHbCH5dONDyjN6KifokEwHc
         FQPy5Ikh267CzPobE8BEaJ56tgCN414sBA4hA=
Cc: mint <mint@fishpool.com>
Message-Id: <AFA3A417-D269-4212-BE3E-58660293A38A@gmail.com>
From: Peter Persson <pep.fishmoose@gmail.com>
To: =?ISO-8859-1?Q?Vincent_Rivi=E8re?= <vincent.riviere@freesbee.fr>
In-Reply-To: <4A27D854.6040809@freesbee.fr>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes
Mime-Version: 1.0 (Apple Message framework v935.3)
Subject: Re: [MiNT] MiNTLib for ColdFire : DONE !
Date: Thu, 4 Jun 2009 16:33:46 +0200
References: <49F743B1.8030803@freesbee.fr> <4A27B367.10107@freesbee.fr> <c6533ef60906040447n24a6a816xada508027ee399d8@mail.gmail.com> <00F5468A-B8B1-47E4-8185-09C51C2298F8@gmail.com> <4A27D854.6040809@freesbee.fr>
X-Mailer: Apple Mail (2.935.3)
X-ecartis-version: Ecartis v1.0.0
Sender: mint-bounce@lists.fishpool.fi
Errors-to: mint-bounce@lists.fishpool.fi
X-original-sender: pep.fishmoose@gmail.com
Precedence: bulk
List-help: <mailto:ecartis@lists.fishpool.fi?Subject=help>
List-unsubscribe: <mailto:mint-request@lists.fishpool.fi?Subject=unsubscribe>
List-Id: <mint.lists.fishpool.fi>
X-List-ID: <mint.lists.fishpool.fi>
List-subscribe: <mailto:mint-request@lists.fishpool.fi?Subject=subscribe>
List-owner: <mailto:tjhukkan@fishpool.fi>
List-post: <mailto:mint@lists.fishpool.fi>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by mail.sparemint.org id n54Eb0Cq015738

Hi,

Ok, tricky. MVS and MVZ could be trapped and emulated, but the MAC  
instructions screw things up.. Didier solved the latter by using an  
unused TRAP instruction. Is this something which could be added to the  
kernel as well? It does make it slightly easier to write code for both  
systems, since I woudn't have to check which CPU I'm running on.

-- PeP

4 jun 2009 kl. 16.21 skrev Vincent Rivière:

> No. The ColdFire lacks a lot of the 680x0 instructions and address  
> modes, but it also adds a few new instructions. See at the bottom of  
> this page:
> http://www.microapl.co.uk/Porting/ColdFire/cf_68k_diffs.html
>
> For example, there is no add.b and add.w on ColdFire. The data must  
> be fetched into a register, then add.l can be used. The new mvs and  
> mvz instructions can be used to fetch a byte or a word, then fill  
> the remaining part of the target register to be suitable for add.l.
>
> Some examples here (in French):
> http://coldfire.zewan.com/68k_cf.htm
>
> GCC uses a lot these new instructions, as well as 68020 instructions  
> compatible with ColdFire, so without a CPU check ColdFire binaries  
> crashes on 68000 and 68020.
>
> -- 
> Vincent Rivière
>
>


