Re: NAND



On Sun, 30 Apr 2006 19:58:33 +0200, Christian Christmann
<plfriko@xxxxxxxx> wrote:

I'm playing with the MIPS assembly language. There is no NAND instruction
in the MIPS ISA, just AND, NOR, OR and XOR. How can I implement the NAND
operation efficiently using the present instructions?

I have heard of NAND gates in TTL (and other) logic chips, but I never
heard of any computer with a NAND instruction. Doesn't mean there
isn't one, I just never heard of any. :-)

Anyway, test out:

r = ( s1 AND s2 ) XOR -1

Where -1 means all bits set to 1 in the register



Thank you.

Chris
--
ArarghMail604 at [drop the 'http://www.' from ->] http://www.arargh.com
BCET Basic Compiler Page: http://www.arargh.com/basic/index.html

To reply by email, remove the garbage from the reply address.
.



Relevant Pages

  • Re: NAND
    ... in the MIPS ISA, just AND, NOR, OR and XOR. ... How can I implement the NAND ... operation efficiently using the present instructions? ... figure out how to emulate NOT using NOR or XOR. ...
    (alt.lang.asm)
  • Freescale MX21 ADS 2.0
    ... I am trying to get the NAND EBOOT to work on my dev board. ... I have the MX21 ADS 2.0 board from Freescale. ... I have installed the NAND daughter board that came with it. ... Can someone give me step by step instructions on exactly what I need ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Boolean query parsing.... what tools, examples, suggestionss
    ... > An operator is like AND, OR, XOR, NAND ... >> How do you create a tree... ... I mean what data structure should be used ...
    (comp.lang.java.programmer)
  • Re: Boolean query parsing.... what tools, examples, suggestionss
    ... > An operator is like AND, OR, XOR, NAND ... >> How do you create a tree... ... I mean what data structure should be used ...
    (comp.lang.java.programmer)
  • Re: OT: Riddle for the bright minds here
    ... |> You can build XOR out of NAND, which were the early and most common TTL ... NAND lent itself readily with TTL. ... but that is wasting the gates and slows the system. ... | it with plain AND and OR, afaik. ...
    (sci.physics.relativity)