Article View: comp.arch
Article #12889Re: Bit operations on 68K
From: jimomura
Date: Tue, 27 Jan 1987 22:57
Date: Tue, 27 Jan 1987 22:57
27 lines
1670 bytes
1670 bytes
In article <816@drivax.UUCP> alexande@drivax.UUCP (Mark Alexander) writes:
...
>This is not completely correct. There is no BSET.L instruction, only BSET.
>It works on a destination that is either a 32-bit register, or a byte from
>memory. Here is what the Motorola book says about BSET:
>
> If a data register is the destination, then the bit numbering is
> modulo 32, allowing bit manipulation on all bits in a data register.
> If a memory location is the destination, a byte is read
> from that location, the bit operation is performed using
> the bit number modulo 8, and the byte written back to
> the location with zero referring to the least-significant bit.
>I didn't take the manual's word for it. I tried it on a Motorola VME/10.
In Kelly-Bootle and Fowler "68000, 68010, 68020 Primer", page 207 they
say that there is a 'bset.l' instruction. Could it be that this is in the
68020? (This isn't entirely academic for me since I'll have an '020 fairly
soon.)
Cheers! -- Jim O.
James Omura
2A King George's Drive
Toronto, Ontario (416) 652-3880
Technical Details
Message-ID:
<1539@lsuc.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!lsuc!jimomuraReferences:
<760@orcisi.UUCP> <112@lmi-angel.UUCP> <816@drivax.UUCP>Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!lsuc!jimomura From: jimomura@lsuc.UUCP Newsgroups: comp.arch,comp.sys.m68k Subject: Re: Bit operations on 68K Message-ID: <1539@lsuc.UUCP> Date: Tue, 27-Jan-87 17:57:59 EST Article-I.D.: lsuc.1539 Posted: Tue Jan 27 17:57:59 1987 Date-Received: Tue, 27-Jan-87 21:58:01 EST References: <760@orcisi.UUCP> <112@lmi-angel.UUCP> <816@drivax.UUCP> Sender: root@lsuc.UUCP Reply-To: jimomura@lsuc.UUCP (Jim Omura) Organization: Consultant, Toronto Lines: 27 Summary: BSET.L--Is there or isn't there?