ftp.nice.ch/pub/next/developer/resources/classes/CompSim.s.tar.gz#/CompSim/Register.h

This is Register.h in view mode; [Download] [Up]

//
// Register
//
// An Objective-C class for simulating computer registers.
//
// Register inherits from Node because it also keeps a certain amount
// of data, and that was the easiest way.
//


#import <objc/Object.h>
#import "Node.h"


@interface Register : Node


{
    //
    // External interface:
    //
    
    Node	*IN;				// n-bit input node.
    Node	*LOAD;				// 1-bit LOAD signal.
    Node	*OUT;				// n-bit output node.
}


- initNumBits:(int)nbits
	in:innode			// Where it gets its data.
	out:outnode			// Where it puts its data.
	load:loadnode;			// Load signal.

- cycle;


@end


//
// End of file.
//

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