ftp.nice.ch/pub/next/developer/resources/classes/CompSim.s.tar.gz#/CompSim/XORGate.m

This is XORGate.m in view mode; [Download] [Up]

//
// XORGate
//
// An Objective-C class for digital logic simulation which
// simulates the behavior of an n-input, m-bit XOR gate.
//


#import "XORGate.h"


@implementation XORGate


- (bit)op:(bit)a :(bit)b
{
    return !(a == b);					// XOR bits.
}


@end


//
// End of file.
//

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.