Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!philabs!mcnc!ncsu!uvacs!mac From: mac@uvacs.UUCP (Alex Colvin) Newsgroups: net.arch Subject: Re: ORed indexes Message-ID: <411@uvacs.UUCP> Date: Tue, 29-Apr-86 11:08:16 EDT Article-I.D.: uvacs.411 Posted: Tue Apr 29 11:08:16 1986 Date-Received: Sat, 3-May-86 02:00:49 EDT References: <5100066@ccvaxa> Organization: U.Va. CS dept. Charlottesville, VA Lines: 26 > How would you react to an instruction set that had no indexed addressing > mode, but did have a mode where a register was ORed into the address? > > I can vaguely recall having seen such a beast - is anyone familiar with it? IBM 7090? 3-bit index register field, 3 index registers. I believe the registers selected were OR'd together, then ADDed to the offset. > .... Losing indexing for array accesses isn't too bad, since > just about every expensive array operation can be written using > pointers instead of indexes (post-increment doesn't require a > carry to perform a memory address). No semi-random access by subscripts? Your machine is to be programmed exclusively in C or assembler, never Fortran. > So what can you do? Adding an index register in slows down the rest of your > instruction set, Even when you don't index? > .... and, if memory is cheap, you might be willing to pad out a > lot more of your structures, to get a speed increase. or use a separate add instruction.